Stuff

  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Stuff as PDF for free.

More details

  • Words: 268
  • Pages: 2
1. SELECT book_code, title, book.publisher_code,  publisher_name FROM publisher, book WHERE  publisher.publisher_code = book.publisher_code ORDER BY  publisher_name ASC; 2. SELECT book_code, title, price FROM book, publisher  WHERE publisher_name = 'Plume'; 3. SELECT title, book_code, price FROM book b, publisher p  WHERE p.publisher_name = 'Plume' AND price = 14; 4. SELECT book.book_code, title, on_hand FROM inventory,  book WHERE book.book_code = inventory.book_code AND  branch_num = 4; 5. SELECT title FROM book, publisher WHERE book.type = 'PSY'  AND publisher.publisher_name = 'Jove Publications'; 6. SELECT title FROM book WHERE book_code IN (SELECT  book_code FROM wrote WHERE author_num = '18'); 7. SELECT title FROM book WHERE exists  (select * from wrote  where wrote.book_code = book.book_code and author_num  ='18'); 8. SELECT title FROM book WHERE book_code IN (SELECT  wrote.book_code FROM inventory, wrote WHERE  inventory.book_code = wrote.book_code AND wrote.author_num  = '20' AND inventory.branch_num = '2'); 9. 10. SELECT title, author_last, on_hand FROM book LEFT JOIN  inventory ON book.book_code = inventory.book_code  LEFT  JOIN wrote on  inventory.book_code = wrote.book_code LEFT  JOIN author on  wrote.author_num = author.author_num WHERE 

branch_num = '4' ; 11.SELECT title, author_last, on_hand FROM book LEFT JOIN  inventory ON book.book_code = inventory.book_code  LEFT  JOIN wrote on  inventory.book_code = wrote.book_code LEFT  JOIN author on  wrote.author_num = author.author_num WHERE  branch_num = '4' AND paperback = 'Y' ; 12. SELECT book_code, title FROM book, publisher WHERE  book.publisher_code = publisher.publisher_code AND price > 10  or city like 'Boston'; 13. SELECT book_code, title FROM book, publisher WHERE  book.publisher_code = publisher.publisher_code AND price > 10  AND city = 'Boston';  14. SELECT book_code, title FROM book, publisher WHERE  book.publisher_code = publisher.publisher_code AND price > 10  AND NOT city = 'Boston'; 15. 16. 17.

Related Documents

Stuff
May 2020 37
Stuff
October 2019 45
Stuff
November 2019 42
Stuff
May 2020 28
Orb Stuff
October 2019 35
Men's Stuff
November 2019 6