Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started