NOTES
Instructions for using SQLite:
Assignment 5 tasks:each query is worth 5 marksWrite and run SQL statements to complete the following tasksPart A - DML
1. Show the details of the products where the product code starts with '22'.2. Display the vendor details from areacode 615.3. Find the balance for customer 'George Williams'.4. Show the number of products from each vendor and display the vendor code if there are more than 2 products from the same vendor.5. Display the vendor code, name, phone number and the number of products from each vendor.6. Find the customers whose balance is zero.7. List the name of the customers for whom we have invoices.8. Show the name and cus_code of the customers for whom we DO NOT have invoices.9. Find out how many times a customer generated an invoice.
Part B - DDL
1. Add a new attribute email_address varchar(30) to the customer table.2. Add email_address = ' XXXXXXXXXX' for customer '10016'.3. Delete the record for employee Edward Johnson from EMP table.
You are required to submit:
Rationale
This assessment aligns with the following subject outcomes:
The marking criteria for this assignment is:
Presentation
This assessment item is required to be submitted in Word format (.doc, or .docx).All SQL statements should be copied from SQLite into the word document. All screenshots that are required should be captured and inserted into the document in the appropriate position to show that you have completed the requirement.Screenshots that are submitted in addition to the assignment document will not be marked. Databases must not be included as part of a submission.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here