Question: 2 . Given the following schema. Suppliers ( sID , sName, address ) Parts ( pID , pName, colour ) Catalog ( sID , pID,
Given the following schema.
SupplierssID sName, address
PartspID pName, colour
CatalogsID pID, price
a Find the name and price of all blue parts. m
b Find the name and price of all blue or red parts. m
c Find all supplier names and addresses. m
d Find the names of all suppliers that supply green parts. m
e Find the name of parts that are blue and black. m Hint: Read the wording carefully.
f Find the total price of all parts. m
g Find the average price of all parts based on colour. m
Given the following schema.
StudentstudentID studentName, studentAddress, phone
CoursecourseID courseName, duration
EnrollstudentID courseID, semester, comments
a Find the names of all students enrolled in semester m
b List all course names and duration. m
c List all courses with a duration less than m
d List all student names who are enrolled in 'Database'. m
e Discuss the differences between natural join, outerjoin and thetajoin. m
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
