Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Suppliers (sid:integer, sname: string, address: string)
  2. Parts (pid: integer, pname: string, color: string)
  3. Catalog (sid: integer, pid: integer, cost: real)
  4.  
  5. Write the following queries in SQL:
  6.  
  7. Find the pnames of parts for which there is some supplier.
  8.  
  9. SELECT P.pname
  10. FROM Parts P, Catalog C
  11. WHERE C.pid = P.pid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement