The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
SQL Homework
Using MySQL
Assignment 4
COP3703
Instructions: Prepare and execute each of the queries listed using the "sakila" database in MySQL. Use the schema shown below. When all of your queries are complete, follow the instructions below to prepare your homework.
Preparing your homework for submission:
1. Type your queries into the query window of MySQL
2. Execute the queries. Scroll through the output window to be sure there are no errors.
3. Take a screen shot of your output and insert into your document for submission, along with the actual SQL code.
4. If there are no errors in your output, continue to the next step. If there are errors correct the errors in the individual query from your Notepad/Word file, then go back to Step 1.
5. Execute the queries again.
6. Make sure to copy and paste ALL queries into a Word, RTF, or PDF document put your name
at the top. This is what you will turn in for Assignment 4 in CANVAS.
Schema/Entities for the Sakila Database
Using the MySQL database, launch the MySQL Workbench program (should have been installed in Lab 2). You will see the following screen once you launch MySQL
You want to click on the root account under Local instance MySQL… If you gave it a password, when it was installed, then you will need to type in the password. You should then get the following screen:
The Navigator window shows you MANAGEMENT, INSTANCE, PERFORMANCE, and SCHEMAS (your databases). Select (double-click) on the sakila database. This will tell the system that you are going to be using the sakila database for the queries. Next, enter the queries in the Query1 window (to the right of the Navigator). Once you type in the query, click on the lightning bolt to run the query. The results of the query will appear in the Output window (below the Query1 window).
Visit http://dev.mysql.com/doc/workbench/en/wb-sql-editor-query-panel.html for help on using the
query editor. Take a screen shot of each query to be peformed and paste into a word/pdf/or other compatible (not Google docs) document (all of the queries only require accessing 1 table – so no joins are required). The syntax is the same for MySQL as it is for SQL Server (more or less). Format all of the queries so that the titles make sense (instead of last_name change to Last Name).
Hint – first line: select actor_id, first_name, last_name
SQL HomeworkUsing MySQLAssignment 4COP3703Instructions:Prepare and execute each of the queries listed using the "sakila" databasein MySQL. Use the schema shown below. When all of your queries arecomplete, follow the instructions below to prepare your homework.Preparing your homework for submission:1.Type your queries into the query window of MySQL2.Execute the queries. Scroll through the output window to be sure there are no errors.3.Take a screen shot of your output and insert into your document for submission, along with theactual SQL code.4.If there are no errors in your output, continue to the next step. If there are errors correct theerrors in the individual query from your Notepad/Word file, then go back to Step 1.5.Execute the queries again.6.Make sure to copy and paste ALL queries into a Word, RTF, or PDF documentput yournameat the top. This is what you will turn in for Assignment 4 in CANVAS.Schema/Entities for the Sakila Database
Attachments: