You are working with a database that stores information about suppliers, parts and projects. The Supply relation records instances of a Supplier supplying a Part for a Project.
The schema for the database used in this question is as follows: (note that primary keys are shown underlined, foreign keys in bold).
SUPPLIER (SNo, SupplierName, City)
PART (PNo, PartName, Weight)
PROJECT (JobNo, JobName, Country)
SUPPLY (SNo, PNo, JobNo, Quantity)
Provide relational algebra (NOT SQL) queries to find the following information. Each question is worth 2 marks.
NOTE:
NO SQL, Please write nicely so that i can see! Thank you!
1.
SupplierName, City ( SUPPLIER)
2.
( Country = 'Austrailia' (PROJECT) )
3.
JobName, PartName ( PROJECT.PNo G Count(partNo) > 50 ( PART PNo = PNo SUPPLY JobNo = JobNo PROJECT) )
4.
SupplierName ( ParName = 'Valve Stem 04' ( PART PNo = PNo SUPPLY SNo = SNo SUPPLIER) )
Do ask if any doubt.
Get Answers For Free
Most questions answered within 1 hours.