Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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