1. Write a query in SQL to list the following information of the artists in movie industry. Limit this information to only 5 artists. Sort the information by age descending order. Full name : first name and last name separated by space Age: Current age Address: State that he resides Contact number: Phone number

Answers

Answer 1

Answer:

1) SQL Server

SELECT  Top 5 concate(first name,' ',last name) AS Full name, Current age AS Age, state AS Address, Phone number AS Contact number from actor ORDERBY Current age DSC ;

2) MySQL

SELECT  concate(first name,' ',last name) AS Full name, Current age AS Age, state AS Address, Phone number AS Contact number from actor ORDERBY Current age DSC limit 5;

Explanation:

There two queries first having syntax works fine in SQL server and later with MySQL. All bold faced words are sql keywords. I assumed the tablename is actor as table name is not given if table name is any other replace actor with that name.


Related Questions

which of these are correctly formatted python lists? check all that apply
Options
-list1=(race, cars, trucks, bikes)
-list2=["computer science', 'math', 'psychology']
-list3=('summer', 'winter', 'spring')
-list5[52, 24, 71, 56]​

Answers

The first and third option are actually tuples, not lists. Tuples and lists are identical except for the fact that you cannot change the elements in a tuple but you can in a list. The last option is incorrect because there is no equal sign that assigns those numbers to the variable name list5.

The only option that makes sense is option 2, list2

Answer:

B, C, and E :)

Explanation:

Other Questions
10 Why is it important for basketball players to wear shoes with tread when playing? to increase the speed of the player to decrease the force between the player and the floor to increase friction between the floor and the player's feet to decrease the amount of force needed for the player to move Leo bought 18 boxes of cereal. This is 25% of the boxes at the store. How many total boxes of cereal were at the store? 53. Pem was given a coin on Monday. Then she was given two coins every day for a long timeWhich day did she get her 17th coin?A. TuesdayB. WednesdayC. SundayD. Monday in your own words explain what valuing diversity means. this question came from a research paper i had to read titled tolerance as civility 9. "NEW WORLD" WAS A NAME GIVEN TO THE AMERICAS BYA.SPICE TRADERSB.SHIP BUILDERSC.AMERICAN INDIANSD.EUROPEAN EXPLORERS What are the big 3 British industries? I just need help filling in the rest of this table. I've done some, but I've been stuck for a while now. Huge thanks to anyone who can help! (04.01 MC) EXPLAIN UR REASONINGThe diagram below shows part of the rock cycle.Rock cycle with a volcanic eruption at the top. Moving counterclockwise, there is an arrow pointing to Rock B. From Rock B there is an arrow labeled sediment and compaction pointing to Rock C. From Rock C there is an arrow labeled heat and pressure pointing to Rock A. From Rock A there is an arrow labeled magma pointing back to volcanic eruption.Which type of rock does C represent? Select one:a. Igneous rockb. Rock formed by coolingc. Rock formed by heat and pressured. Sedimentary rock 3John has 18 pounds of pet food and is going to separate it into pound portions. How many portions of pet food will hehave? :(........................ I am very much lost if anybody understand this can u help mePlease is the kinetic energy due to the random motion of particles in an object helpppp plesase ASAP Solve for x by answering the number below/ Awnser and ill give u brainliestNow that you have worked through a lot of material that includes these basic patterns, and you have compared grammatically correct and incorrect sentences, write down what you think is a rule that could explain what makes a sentence grammatically correct or not. For example, you might write something like: "verbs always match nouns in number, and they usually come before the noun." In other words, make your best guess for the grammar rule that makes sense out of the pattern(s) you see in the phrases you have been working with. Review if you need to, and you might briefly check your hunches against the sentences you have been working with in this or previous modules. Keep in mind that what you're after is your hunch, not a grammar rule from a text book.You will write one sentence with your Grammar Hunch for Ser and Estar and one sentence with an example of Ser and Estar. What is the cellular mechanism of tuberculosis? (Explain) Will is collecting pennies. Each month in May, June, and July, he put 200 pennies in a jug. He put 300 pennies in the jug in August and 300 in September. How many pennies did Will put in the jug between May and September? do you believe anaerobic activity is important for your overall health? Why or why not? What is health appraisal? WILL GIVE BRAINIEST AND 20 POINTS!!! SEARCH UP THE BOOK THE SCHOLARSHIP JACKET AND ANSWER THE FOLLING QUESTION:WHAT THREE CHARACTERISITICS WOULD YOU USE TO DESCRIBE MARTHAS CHARACTER? USE EVIDENCE FROM THE TEXT TO SUPPORT UR ANSWERS