Question: Assignment #0 - Review SQL Due Date: Midnight of January 20 (Friday) Purpose: The purpose of this assignment is to help you to recall what

 Assignment \#0 - Review SQL Due Date: Midnight of January 20(Friday) Purpose: The purpose of this assignment is to help you torecall what you have already learnt in COMP 122 Instructions: Be sureto read the following general instructions carefully: This assignment should be completed

Assignment \#0 - Review SQL Due Date: Midnight of January 20 (Friday) Purpose: The purpose of this assignment is to help you to recall what you have already learnt in COMP 122 Instructions: Be sure to read the following general instructions carefully: This assignment should be completed individually by all the students. Submit your solution through the dropbox, Your submission should include sql command and the screenshot of command execution result, the submission must be named according to the following rule: studentID(yourlastname)_Assignment\#number.doc. e.g., 300123456(smith)_Assignment\#0.doc Tahle Tnvace Advanced Database Table Line 1. Write sql commands to create above tables, insert sample data, generate ERD using SQL Developer [25+1 marks] 2. Write a query to count the number of invoices [ 1 mark] 3. Write a query to count the number of customers with a balance of more than $500 [1 mark] 4. Generate a listing of all purchases made by the customers. Sort the result by customer code, invoice number, and product description [1 mark] 5. Use a query to compute the total of all purchase, the number of purchases, and the average amount made by each customer, sort the results by customer code [ 1 mark]

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!