Question: Query # 1 a: Using the NATURAL JOIN condition, retrieve the name of the department, the name of the project, and the location of the
Query #a: Using the NATURAL JOIN condition, retrieve the name of the department, the name of the project, and the location of the project for the ProductY project.
Query #b: Using the NATURAL JOIN condition, retrieve the name of the department, the name of the project, and the location of the project for the ProductY project. Combine this query result with one that retrieves the name of the department, the name of the project, and the location of the project that Alicia works on
Query #: Using LEFT OUTER JOIN between DEPARTMENT and EMPLOYEE tables list the first and last names of employees who manage a department.
Query #: Using the MINUS condition, write a query that retrieves the name of the department, the name of the project, and the location of projects that Franklin does not work in
Query #: Using the INTERSECT condition, write a query that retrieves the name of the department, the name of the project, and the location of the projects that Franklin works inHint: Query # and Query # differ by the keyword
Query #: Write a query that retrieves the number of projects each employee works on Show each employee's first and last names alongside the number of projects each employee works on Present the list ordered alphabetically by the first name.
CREATETABLESHOW
SHOWIDINTPRIMARYKEY
SHOWNAMEVARCHARNOTNULL
SHOWGENREVARCHAR
;
CREATETABLEANCHOR
ANCHORIDINTPRIMARYKEY
FIRSTNAMEVARCHARNOTNULL
LASTNAMEVARCHARNOTNULL
EMAILADDRESSVARCHAR
PHONENUMBERVARCHAR
;
CREATETABLESTUDIO
STUDIOIDINTPRIMARYKEY
STUDIOCITYVARCHAR
STUDIONAMEVARCHAR
;
CREATETABLEBROADCAST
BROADCASTIDINTPRIMARYKEY
BROADCASTTITLEVARCHAR
BROADCASTDATEDATENOTNULL
STARTTIMETIMESTAMPNOTNULL
ENDTIMETIMESTAMPNOTNULL
STUDIOIDINTNOTNULL
SHOWIDINTNOTNULL
CONSTRAINTBRSHFKFOREIGNKEYSHOWIDREFERENCESSHOWSHOWID
CONSTRAINTBRSTFKFOREIGNKEYSTUDIOIDREFERENCESSTUDIOSTUDIOID
;
CREATETABLEANCHORASSIGNMENTS
ANCHORIDINTNOTNULL
BROADCASTIDINTNOTNULL
CONSTRAINTAAPKPRIMARYKEYANCHORIDBROADCASTID
CONSTRAINTAAAFKFOREIGNKEYANCHORIDREFERENCESANCHORANCHORID
CONSTRAINTAABCFKFOREIGNKEYBROADCASTIDREFERENCESBROADCASTBROADCASTID
;
PopulateANCHORtable
INSERTINTOANCHORANCHORIDFIRSTNAME,LASTNAME,EMAILADDRESS,PHONENUMBER
VALUES
KURTWARNERkurtwarner@nflcom',
MARSHAWNLYNCHmarshawnlynch@nflcom',;
PopulateSHOWtable
INSERTINTOSHOWSHOWIDSHOWNAME,SHOWGENRE
VALUESNFLNETWORKSPORTS;
PopulateSTUDIOtable
INSERTINTOSTUDIO
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
