Solution Assignment # 4 (CS403)
Solution Assignment # 4 (CS403)
1. Show all the Category names with their Supplier names. select [supplier-name],[category-name] from supplier,category where supplier.[supplier-id]=category.[supplier-id]
2. Show all the names of Products with their IDs. select [product-id],[product-name] from product
3. Show all the products of Bumper & Components Category. select [product-name] from product, category where [category-name]="Bumper & Components" and category.[categoryid]=product.[category-id]
4. Show all the Product names and their Supplier names. select [supplier-name], [product-name] from product, category, supplier where supplier.[supplier-id]=category.[supplier-id] and category.[categoryid]=product.[category-id]
5. Show all those Product IDs supplied by S & S corporations. select [product-id] from product, category, supplier where supplier.[supplier-id]=category.[supplier-id] and category.[categoryid]=product.[category-id] and supplier.[supplier-name]="S & S corporations"