Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write SQL statements to create the relationships that correspond to the entity sets and relationship sets considering all the constraints in the given E-R
Write SQL statements to create the relationships that correspond to the entity sets and relationship sets considering all the constraints in the given E-R diagram (50 Points). PROCEDURE 2: Write the SQL statements (50 Points). Write an SQL statement to add 'Thom Yorke' with ssn= 101 and 'PJ Harvey' with ssn=102 as musicians. Write an SQL statement to add 'Piano' with instrid=001, intstruments_key=1 and 'Guitar' with instrid=002, intstruments_key=0 as instruments. Write an SQL statement to add 'Piano' and 'Guitar' for 'PJ Harvey' and 'Guitar' for 'Thom Yorke' as Plays. Write the SQL statement that lists the musician's name and the instrument name this musician can play. Write an SQL statement to delete the 'PJ Harvey' Musician. Given the referential integrity constraints you chose for this schema, explain what happens when this statement is executed. Instruments instrid dname instruments_key Plays 8 ssn instrld Musicians ssn name
Step by Step Solution
★★★★★
3.42 Rating (158 Votes )
There are 3 Steps involved in it
Step: 1
In the provided image you have an EntityRelationship ER diagram depicting the relationship between Musicians and Instruments through an associative en...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