Question: Qn 4 . Write the following SQL statements using CLIENT and ORDER tables:CLIENTClientIdLastNameFirstNameSuburbPhoneCity 1 JasonRitaBella Boulevard 3 4 3 2 4 2 2 Sydney 2

Qn 4. Write the following SQL statements using CLIENT and ORDER tables:CLIENTClientIdLastNameFirstNameSuburbPhoneCity1JasonRitaBella Boulevard3432422Sydney2SmithJacksonHigh Park5535333Sydney3WagnerJamesRichmond4425253Perth4BlakeSusanRockdale5141412Brisbane5JonesTaniaComo5474574Melbourne6LynnKarinaDural1231241Sydney7WaltersMaxHigh Park4574774Perth8PoplarLiamCrasspark1312425Brisbane9RobbNoahElwood6746236Melbourne10HenlonJamesHawthrone1235636DarwinORDEROrderNoOrderDescClientIdOrderDateShippedDateCountryTotal Amount17895Large Item312/10/1816/10/18Australia200.5021678Small Item205/01/1909/01/19Italy300.0022456Item ABC410/03/1912/03/19France400.7524562Medium Item226/12/1927/12/19Australia150.00347643 Tier Design518/07/2020/07/20Japan370.6036533Round Box822/09/2027/09/20Australia190.8536536Brand-005322/09/2024/09/20China216.7537454Express Delivery111/11/2014/11/20Denmark625.00 Questions:a. Display client details in descending order of the clients first name and then by the last name in ascending order.b. Find details of all clients whose last name begins with S. Display results in descending order of city. c. Display the number of clients living in Sydney. d. Display order ID, client details (name, ID of clients), and country for the orders placed in 2020. Display results in descending order of OrderID.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!