Question: + Clientid 1 2 3 4 5 6 LastName Jason Smith Wagner Blake Jones Lynn Walters Poplar Robb Henlon FirstName Rita Jackson James Susan Tania

 + Clientid 1 2 3 4 5 6 LastName Jason SmithWagner Blake Jones Lynn Walters Poplar Robb Henlon FirstName Rita Jackson James

+ Clientid 1 2 3 4 5 6 LastName Jason Smith Wagner Blake Jones Lynn Walters Poplar Robb Henlon FirstName Rita Jackson James Susan Tania Karina Max Liam Noah James Suburb Bella Boulevard HighPark Richmond Rockdale Como Dural HighPark Crasspark Elwood Hawthrone Phone 3432422 5535333 4425253 5141412 5474574 1231241 4574774 1312425 6746236 1235636 City Sydney Sydney Perth Brisbane Melbourne Sydney Perth Brisbane Melbourne Darwin 7 8 9 10 ORDER Order No OrderDesc Clientid Order Date ShippedDate Country 17895 3 2 21678 22456 24562 4 2 Large Item Small Item Item ABC Medium Item 3 Tier Design Round Box Brand-005 Express Delivery 12/10/18 05/01/19 10/03/19 26/12/19 18/07/20 22/09/20 22/09/20 11/11/20 16/10/18 09/01/19 12/03/19 27/12/19 20/07/20 27/09/20 24/09/20 14/11/20 Australia Italy France Australia Japan Australia China Denmark Total Amount 200.50 300.00 400.75 150.00 370.60 190.85 216.75 625.00 5 34764 36533 36536 37454 8 3 1 Questions: 1. Write CREATE and INSERT statements for the above tables and identify constraints. Make sure primary key, foreign key, not null and other constraints are included in table creation scripts. (3 marks) 2. Write SQL statements to fulfil the following requirements and provide the screenshot of the output: (7 marks) a. Display client details in ascending order of city. (1 mark) b. Display first name, last name, city, and suburb of clients who live in the suburbs starting with letter 's'. (2 marks) c. Display number of clients living in Darwin. (2 marks) d. Display order ld, client details (name, ID of clients) and country for the orders placed in 2019. Display results in ascending order of Order.D. (2 marks) |

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!