Question: 1) Solve all queries below using only select, project, Cartesian product, and natural join. Do not use theta-join, set operations, renaming or assignment | Schema

 1) Solve all queries below using only select, project, Cartesian product,

and natural join. Do not use theta-join, set operations, renaming or assignment

1) Solve all queries below using only select, project, Cartesian product, and natural join. Do not use theta-join, set operations, renaming or assignment | Schema Suppliers(sid, sName, address) Parts(plD.pdame, colour) Catalog(sid. p.D. price) Catalog[sID] = Suppliers[s1D] CatalogIRID] S Parts[RID) Questions: 1. Find the names of all red parts. 2. Find all prices for parts that are red or green. 3. Find the slds of all suppliers who supply a part that is red and green. 4. Find the names of all suppliers who supply a part that is red or green. II) User Id Name Age Gender Occupationld Cityld 1 John 25 Male 1 3 N Sara 20 Female 3 4 3 Victor 31 Male 2 5 4 Jane 27 Female 1 3 Occupationld Citvid CityName 1 1 Halifax 2 OccupationName Software Engineer Accountant Pharmacist Library Assistant 2 Calgary 3 3 Boston 4 4 New York 5 Toronto Occupation City 1. Solve the following relational expressions for above relations. a. TTName(CAge>25(User)) Dies2vAgel=31(User) C. QUESTI Secupation/d=Occupation.Sccupationa(User X Occupation) d. User a Occupation City e. TtName. Gender cityName="Boston (User City)) 2. Write SQL statements for relational expressions in question 1

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!