Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a script that adds an index to the my_guitar_shop database for the zip code field in the Customers table (screenshot). Write a script that

image text in transcribed

Write a script that adds an index to the my_guitar_shop database for the zip code field in the Customers table (screenshot). Write a script that implements the following design in a database named my_web_db (screenshot of SQL code to create the database and table and EER diagram): in the Downloads table, the user_id and product_id columns are the foreign keys. Include a statement to drop the database if it already exists. Include statements to create and select the database. Include any indexes that you think are necessary. Write a script that adds rows to the database that you created in exercise 2. Add two rows to the Users and Products tables (screenshot both tables). Add three rows to the Downloads table: one row for user 1 and product 2; one row for user 2 and product 1; and one row for user 2 and product 2. Use the NOW function to insert the current date and time into the download_date column (screenshot). Write a SELECT statement that joins the three tables and retrieves the data from these tables like this: Sort the results by the email address in descending sequence and the product name in ascending sequence (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

Students also viewed these Databases questions

Question

What is the relationship between diversity, inclusion, and equity?

Answered: 1 week ago