0% found this document useful (0 votes)
48 views1 page

Solution Assignment # 4 (CS403)

This document contains 5 SQL queries: 1) Shows category names and their supplier names, 2) Shows all product names and IDs, 3) Shows products in the "Bumper & Components" category, 4) Shows product names and their supplier names, 5) Shows product IDs supplied by "S & S corporations".

Uploaded by

20percentangel
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views1 page

Solution Assignment # 4 (CS403)

This document contains 5 SQL queries: 1) Shows category names and their supplier names, 2) Shows all product names and IDs, 3) Shows products in the "Bumper & Components" category, 4) Shows product names and their supplier names, 5) Shows product IDs supplied by "S & S corporations".

Uploaded by

20percentangel
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

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"

You might also like