This assessment consists of 20 multiple choice questions. Each correct answer will score 0.25 marks. Marks will not be deducted for incorrect answers.Marks will be given based on the correctness of the answers. The Test Centre will be marking automatically and you will receive marks according to the following criteria:• HD - At least 85% answers were correct • DI - At least 75% answers were correct • CR - At least 65% answers were correct • PS - At least 50% answers were correctAssessment item 5 Query and update databases using SQL Value: 15% Due date: 06-Oct-2017 Return date: 27-Oct-2017 Submission method options Alternative submission methodTaskNOTESThis assignment requires you to use SQLite to complete the tasks listed below. For guidance on how to install SQLite, watch this short YouTube video: https://www.youtube.com/watch?v=9ynCDVg54H0 For guidance on how to create tables using SQLite, watch this short YouTube video: https://www.youtube.com/watch?v=kij5lPw0F-o Typing the SQL statements or the results is NOT acceptable.InstructionsFrom Resources under Main Menu in Interact 2 go to Assignment 5 FolderCopy sqlite3.exe file from the Assignment 5 Folder into a folder in your machineCopy a5.txt from the Assignment 5 Folder into the folder in your machine where your SQLite file is locatedFrom the SQLite Command Prompt execute the a5.txt script. To do this, at the SQLite Command Line type .read a5.txt [to create the tables you will use to answer this assignment’s questions]At the SQLite Command Line type .headers onAt the SQLite Command Line type .mode column Write and run SQL statements to complete the following tasksShow sums of line totals for each invoice. Locate the record in the vendor table that does not have a value for the attribute V_STATE Find the customers whose balance is greater than 200 but less than 300.Charles Sturt University Subject OutlineITC556 201760 SM I-17 June 2017-Version 1 Page of 13 184. 5. 6.7. 8. 9.10. 11. 12.Using natural join and having, list the customers whose invoice total is greater than 200 Show the names of the customers for whom we have invoices. Using natural join and having, list the customers whose invoice total is greater than the average Show the names of the customers for whom we DO NOT have invoices. Using natural join and having, list the customers whose invoice total is the maximum. List the first name and last name of the customers and how many times a customer has generated an invoice. List all purchases by customer 10018. List the names of the vendors who provided products. Using inner join, list the details of the products which sold more than 10 units
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here