Question: SQL EXERCISE HELP ! Write the code to create a database with the following tables: Songs : each song has a title, duration, and genre.

SQL EXERCISE HELP !

Write the code to create a database with the following tables:

Songs: each song has a title, duration, and genre. Title and duration are required; genre is not. Publish date has to be before today, and after the first day of the current year. Genre must be at least 3 characters.

Albums: each album has a title, artist, release date, price, format, and genre. All fields except genre are required. Price can't be negative. Format must be record, cd, or eight track. Release date can be any date after 1/1/1931 if the format is record; any date after 1/1/1968 if the format is eight track; and any date after 1/1/1979 if it's a cd.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!