

MCQOPTIONS
Saved Bookmarks
1. |
Consider a relational database containing the following schemes.CataloguesnopnoCostS1P1150S1P250S1P3100S2P4200S2P5250S3P1250S3P2150S3P5300S3P4250 SupplierssnosnamelocationS1M/s Royal furnitureDelhiS2M/s Balaji furnitureBangaloreS3M/s Premium furnitureChennai PartspnoPnamePart_specP1TableWoodP2ChairWoodP3TableSteelP4AlmirahSteelP5AlmirahWood The primary key of each table is indicated by underling the constituent fields.SELECT s.sno, s.snameFROM Suppliers s, Cataloque cWHERE s.sno = c.sno AND Cost > (SELECT AVG (cost)FROM CataloqueWHERE pno = ‘P4’GROUP BY pno);The number of rows returned by the above SQL query is |
A. | 4 |
B. | 5 |
C. | 0 |
D. | 2 |
Answer» B. 5 | |