Question: Create reports containing the following details from the database: For EACH of the questions create TWO queries, one using: a) traditional join with the WHERE

Create reports containing the following details from the database:

For EACH of the questions create TWO queries, one using:

a) traditional join with the WHERE clause

AND another one using:

b) ANSI join with the JOIN keyword

Q1 List the book title, publisher name, contact, and contact phone number for all computer books with a retail price under $100.

Q2 List all book titles and the first and last names of the customer(s) who ordered each title. Be sure to show the titles of the books that were not ordered.

Q3** List the names of anyone who has co-authored a book, along with the name of the co-author. Your list may contain two rows for two authors, e.g. Smith co-authored book XYZ with Jones, and Jones co-authored book XYZ with Smith. Order the list by the authors name. Do NOT include single-authored books. Could this be a time to use a self-join?

Q4 Use the MINUS operator to list the publishers who have not published any cooking books. The MINUS operator will make this much easier.

Q5 List the ISBN, title, author last name(s), retail price, and the promotional gift for all books. For books with multiple authors list both author's names but it is also OK if only one was provided.

Q6** Complete Question 10 (use jl_employee table that you have created last week using the script provided in Module 4 Assignment. Use a self-join in combination with an outer join so you can show the top boss in your report!

Q7** Based on the prospective customers you have loaded into your DB last week as part of Module 4 Assignment create a single query that provides the first name, last name, email, and state for everyone customers and prospects.

The query should indicate whether the name is for a customer or a prospect with a column that contains either a C for a customer or a P for a prospect.

If a prospect turns out to already be a customer, then the final list should show him/her ONLY once, with the C indicator.Create reports containing the following details from the database: For EACH of

CUSTOMERS Customer Lastname Firstname Email Address City State Zip Referred Region ORDERS Order# Customer Orderdate Shipdate Shipstreet Shipcity Shipstate Shipzip Shipcost ORDERITEMS Order# Item# ISBN Quantity Paideach BOOKAUTHOR AUTHOR BOOKS ISBN Authors ISBN AuthorID Lname Title Fname Pubdate PublD Cost Retail Discount PUBLISHER Category PublD Name PROMOTION Contact Phone Gift Minretail Maxretail FIGURE 1-5 JustLee Books's table structures after normalization

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!