Question: SQL Qn 4 . Write the following SQL statements using CLIENT and ORDER tables: CLIENT ClientId LastName FirstName Suburb Phone City 1 Jason Rita Bella
SQL
Qn Write the following SQL statements using CLIENT and ORDER tables:
CLIENT
ClientId LastName FirstName Suburb Phone City
Jason Rita Bella Boulevard Sydney
Smith Jackson High Park Sydney
Wagner James Richmond Perth
Blake Susan Rockdale Brisbane
Jones Tania Como Melbourne
Lynn Karina Dural Sydney
Walters Max High Park Perth
Poplar Liam Crasspark Brisbane
Robb Noah Elwood Melbourne
Henlon James Hawthrone Darwin
ORDER
OrderNo OrderDesc ClientId OrderDate ShippedDate Country Total Amount
Large Item Australia
Small Item Italy
Item ABC France
Medium Item Australia
Tier Design Japan
Round Box Australia
Brand China
Express Delivery Denmark
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
