Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 10th International Symposium Sstd 2007 Boston Ma Usa July 2007 Proceedings Lncs 4605

Authors: Dimitris Papadias ,Donghui Zhang ,George Kollios

2007th Edition

3540735399, 978-3540735397

More Books

Students also viewed these Databases questions