Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Right a SQL code that will display the chart above. Thank you! Consider the scenario from homework 1, where we designed an ER diagram as
Right a SQL code that will display the chart above. Thank you!
Consider the scenario from homework 1, where we designed an ER diagram as represented in the following figure for an art gallery in Greensboro. Write SQL statements to create the corresponding relations and capture as many of the constraints as possible. If cannot capture some constraints, explain why. Make sure that the data type and size for each attribute are appropriate. For example, a numerical data type is better choice than a string data type for the attribute salary. Please put your SQL statements into a SQL script file and submit it to the assignment link. Make sure your SQL script file can be run successfully in MySQL before submitting it. If it can't be run, your grade of this assignment will be a ZERO. If your file can berun without error messages, the maximum possible points for each portion are listed below: Create Tables Load Data Constraints 45 points 45 points 10 points IName mName Title Nam Employees Branches WorksAt Stores location status ublishYr category ID IName titleBooks Writes Authors ID costLate costLoss checkOutDate ID ueDa urnDate printBooks AudioBooks mName IName ISBN ASINStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started