Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create MySQL Database You will use MySQL Workbench to create the My Guitar Shop database to review the tables in this database and to enter

Create MySQL Database
You will use MySQL Workbench to create the My Guitar Shop database to review the tables in this database and to enter SQL statements and run them against this database.
Make sure the MySQL server is running
Start MySQL Workbench and open a connection for the root user.
Check whether the MySQL server is running. If it isnt, start it.
Use MySQL Workbench to create the My Guitar Shop database.
Download and open the script file named my_guitar_shop.sql Download my_guitar_shop.sqlby clicking the Open SQL Script File button in the SQL Editor toolbar. Then, use the resulting dialog box to locate and open the file.
Execute the entire script by clicking the Execute SQL Script button in the SQL editor toolbar or by pressing Ctrl+Shift+Enter. When you do, the Output window displays messages that indicate whether the script executed successfully. Take a screenshot.
Use MySQL Workbench to enter and run SQL statements
Double-click on the my_guitar_shop database to set it as the default database. When you do that, MySQL Workbench should display the database in bold.
Open a SQL editor tab. Then, enter and run this SQL statement:
SELECT product_name FROM products
Take a resulting screenshot.
Delete the e at the end of product_name and run the statement again. Note the error number and the description of the error. Take a resulting screenshot.
Open another SQL editor tab. Then, enter and run this statement:
SELECT COUNT(*) AS number_of_products
FROM products
Use MySQL Workbench to open and run scripts
Download and open the script named product_details.sql Download product_details.sql. Note that this script contains just one SQL statement. Then, run the statement. Take a resulting screenshot.
Download and open the script named product_summary.sql Download product_summary.sql. Note that this opens another SQL editor tab. Then, run the statement. Take a resulting screenshot.
Download and open the script named product_statements.sql Download product_statements.sql. Notice that this script contains two SQL statements that end with semicolons. Then, run the statement. Take a resulting screenshot.
All the screenshots should show current date. Example of screenshot.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Develop successful mentoring programs. page 418

Answered: 1 week ago