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 Write the following SQL statements using CLIENT and ORDER tables:CLIENTClientIdLastNameFirstNameSuburbPhoneCityJasonRitaBella BoulevardSydneySmithJacksonHigh ParkSydneyWagnerJamesRichmondPerthBlakeSusanRockdaleBrisbaneJonesTaniaComoMelbourneLynnKarinaDuralSydneyWaltersMaxHigh ParkPerthPoplarLiamCrassparkBrisbaneRobbNoahElwoodMelbourneHenlonJamesHawthroneDarwinORDEROrderNoOrderDescClientIdOrderDateShippedDateCountryTotal AmountLarge ItemAustraliaSmall ItemItalyItem ABCFranceMedium ItemAustralia Tier DesignJapanRound BoxAustraliaBrandChinaExpress DeliveryDenmark 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 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
