Questions from Database Systems


Q: Generate a listing of all purchases made by the customers, using

Generate a listing of all purchases made by the customers, using the output shown in Figure P7.28 as your guide. (Hint: Use the ORDER BY clause to order the resulting rows as shown in Figure P7.28)...

See Answer

Q: Write a query to display the book number, title, and

Write a query to display the book number, title, and cost of each book (See Figure P7.71). FIGURE P7. 71 Title and Replacement Cost for Books

See Answer

Q: Write a query to display the checkout number, book number,

Write a query to display the checkout number, book number, patron ID, checkout date, and due date for every checkout that has ever occurred in the system. Sort the results by checkout date in descend...

See Answer

Q: Write a query to display the book title, year, and

Write a query to display the book title, year, and subject for every book. Sort the results by book subject in ascending order, year in descending order, and then title in ascending order (See Figure...

See Answer

Q: Write a query to display the book number, title, and

Write a query to display the book number, title, and year of publication for all books published in 2012 (See Figure P7.74). FIGURE P7. 74 Books Published in 2012

See Answer

Q: Write a query to display the book number, title, and

Write a query to display the book number, title, and year of publication for all books in the “Database” subject (See Figure P7.75). FIGURE P7. 75 Database Books...

See Answer

Q: Write a query to display the checkout number, book number,

Write a query to display the checkout number, book number, and checkout date of all books checked out before April 5, 2015 (See Figure P7.76). FIGURE P7. 76 Checkouts before April 5th

See Answer

Q: Write a query to display the book number, title, and

Write a query to display the book number, title, and year of publication of all books published after 2013 and on the “Programming” subject (See Figure P7.77). FIGU...

See Answer

Q: Write a query to display the book number, title, year

Write a query to display the book number, title, year of publication, subject, and cost for all books that are on the subjects of “Middleware” or “...

See Answer

Q: Write a query to display the author ID, first name,

Write a query to display the author ID, first name, last name, and year of birth for all authors born in the decade of the 1980s (See Figure P7.79). FIGURE P7. 79 Authors Born in the 1980s

See Answer