Henry Books Case
Instruction:
- You must use “SQL View” function of Microsoft Access. If you use “QBE” function of Access for generating queries, you will receive no points.
- Make sure to use “Henry Books” database for this assignment. Please download the database form the class website.
Score: 10 points
Deliverable: Access Database with answer queries
Questions 1 from 11 are for “PRACTICE.” Thus, you do not need to turn them in.
- List the book code and book title for every book.
- List the complete Publisher table (all rows and all columns).
- List the name of every publisher located in New York.
- List the name of every publisher not located in New York.
- List the name of every branch that has at least 10 employees.
- List the book code and title of every book that has the type HOR.
- List the book code and title of every book that has the type HOR and that is a paperback.
- List the book code and title of every book that has the type HOR or that has the publisher code PE.
- List the book code, title, and price for each book with a price that is greater than $10 but less than $20.
- List the book code and title of every book that has the type MYS and a price oflessthan $20.
- Customers that are part of a special program get a 15% discount off regular book prices. To determine the discounted prices, list the book code, tide, and discounted price of every book. (Your calculated column should calculate 85% of the current price, which is 100% less a 15% discount.)
Questions 12 from 21 are for the “ASSIGNMENT.” Thus, you MUST turn them in.
- List the book code and tide of every book that has the type FIC, MYS, or ART.
- List the book code, tide, and publisher code for all books. Sort the results by title within publisher code.
- How many books have the type MYS?
- Calculate the average price for each type of book.
- For every book, list the book code, book tide, publisher code, and publisher name.
- For every book published by Lb Books, list the book tide and book price.
- List the book tide and book code for every book published by Scribner that has a book price greater than $10.
- Create a new table named Fiction using the data in the BookCode, Tide, PublisherCode, and Price columns in the Book table for those books that have the type FIC.
- Use an update query to change the price of any book in the Fiction table with a current price of 8.00 to 8.50.
- Use a delete query to delete all books in the Fiction table that have the publishercode PE.