Question: These are queries that use the full Red Cat Database as shown in Figure 3.1. Do not use the SimplifiedSales database. You must use the
These are queries that use the full Red Cat Database as shown in Figure 3.1. Do not use the SimplifiedSales database. You must use the full Red Cat tables of Customer, Sale, SaleItem, Product, Manufacturer, and Employee tables.
For each information request below, formulate a single SQL query to produce the required information. In each case, you should display only the columns requested.
1. For black sneakers, how does the current list price compare to price it has sold? Show manufacturer name, list price, sale price, and column called "discount" (which is the list price - sale price) Show the records in descending order by manfacturer name.
2. What is the total count of manufactures from Oklahoma (State='OK')? Your query should display at least one column called: "Oklahoma_count"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
