Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6) SQL (12 points) Note: All SQL questions assume the use of standard SOL Assume that you have created a database to keep track of

image text in transcribed
6) SQL (12 points) Note: All SQL questions assume the use of standard SOL Assume that you have created a database to keep track of your old CD music collection. The structure of the database is as follows: ARTISTS (artistlD, artist name, nationality, current salary, prior salary, grammy CD (cdID, od serial number, artistlD, Title, music type, year released, length in minutes purchase price, personal rating) Now you want to find specific information about your collection. For each of the following questions, write an SQL statement that can answer the question. Only retrieve columns that are directly relevant to each question a) What are the titles and music types of all CDs in your collection? b) What are the titles of CDs that are of the "Rock music type and cost you more than $15? c) Which artists have had a decrease in salary? d) What is the total amount that you spent on each music type? Sort these by the music type oheapest first

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

How to find if any no. is divisble by 4 or not ?

Answered: 1 week ago

Question

Explain the Pascals Law ?

Answered: 1 week ago

Question

What are the objectives of performance appraisal ?

Answered: 1 week ago

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago

Question

2. Discuss the types of messages that are communicated nonverbally.

Answered: 1 week ago