Assignment: Query Your Database
In the last module, you build your database. But a database without any data isn't useful at all! In the last module, you build your database. But a database without any data isn't useful at all! So now that you have had some practice in writing SQL queries and you have a functional database in at least third normal form (from the previous module), it's time to populate your database and write some queries!
Step I
Populate your database that you created in module 5 with some representative testing data. Include at least 15 records for each of the tables (use INSERT commands or GUI tools provided by the DBMS you select).
Step II
Think of descriptions for six data querying requirements that could be answered from the data stored in your database, three requirements to change data already in the database, and three requirements to delete data already in the database. Answers to your querying requirements should contain at least two JOINs; two aggregation functions; a GROUP BY clause; and three WHERE or HAVING clauses. See the discussion instructions for examples.
Step III
In a Word document, prepare the following for each DML requirement you came up during Step II:
• The description for your requirement
• The DML statement (SQL command) that will get you the data you need - do not use a query generator or graphical tool to write this; write it on your own
• A screenshot of the resulting query output when executed on your database
Compose your work in a .doc or .docx file type using a word processor (such as Microsoft Word, etc.) and save it frequently to your computer. For those assignments that are not written essays and require uploading images or PowerPoint slides, please follow uploading guidelines provided by your instructor.
Check your work and correct any spelling or grammatical errors. When you are ready to submit your work, click "Submit Assignment" in the upper right corner. Click on "Browse," browse your computer, and select your file. Click "Open" and verify the correct file name has appeared next to the Browse button. Enter your comments, if any, in the Comments area. Click on "Submit Assignment."