Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the My Guitar Shop database you installed in Module 1, develop the following queries. 1. Write a SELECT statement that returns four columns from

Using the My Guitar Shop database you installed in Module 1, develop the following queries. 1. Write a SELECT statement that returns four columns from the Products table: product_code, product_name, list_price, and discount_percent. Then, run this statement to make sure it works correctly. Take a screenshot of the query and results. 2. Write a SELECT statement that returns one column from the Customers table named full_name that joins the last_name and first_name columns. Format this column with the last name, a comma, a space, and the first name like this: Doe, John Sort the result set by the last_name column in ascending sequence. Return only the customers whose last names begin with letters from M to Z. Execute the query and take a screenshot of the query and the results. NOTE: When comparing strings of characters, M comes before any string of characters that begins with M. For example, M comes before Murach. 3. Write a SELECT statement that returns these columns from the Products table: product_name The product_name column list_price The list_price column date_added The date_added column Return only the rows with a list price thats greater than 500 and less than 2000. Sort the result set by the date_added column in descending sequence. Execute the query and take a screenshot of the query and the results.

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_2

Step: 3

blur-text-image_3

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

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

Describe the business culture in India.

Answered: 1 week ago