Based on the three tables and the attributes below, answer the question for Requirement A and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Based on the three tables and the attributes below, answer the question for Requirement A and write SQL commands for Requirements B to E to retrieve the data from the database. Salesltems Sales Inventory V InventoryID V InvoicelD 8 InventoryID 8 InvoiceID Name InvoiceDate OrderDate Quantity UnitPrice BeverageType Caffeinated CustomerID Flavored EmployeelD PurchasePrice CustomerPO Required: a. What are the foreign keys in the Sales table? b. How many sales transactions were made in March, 2017? c. Which sales transactions were made by the employee whose ID is 'S2038' in the system? d. List the inventory items with purchase price larger than $6,500. e. Write a query to find out the dollar amount of each sales transaction. 81 Complete this question by entering your answers in the tabs below. Required A Required B Required C Required D Required E Required B What are the foreign keys in the Sales table? (Indicate your answers by selecting an "X" next to the applicable amounts.) InvoicelD InvoiceDate OrderDate CustomerID EmployeelD CustomerPO Required A Required B Required C Required D Required E How many sales transactions were made in March, 2017? SELECT COUNT InvoicelD FROM Sales WHERE InvoiceDate BETWEEN #3/1/2017# AND #3/31/2017# Required A Required B Required C Required D Required E Which sales transactions were made by the employee whose ID is 'S203 SELECT FROM Sales WHERE EmployeelD 'S2038' Required A Required B Required C Required D Required E List the inventory items with purchase price larger than $6,500. SELECT InvoicelD InvoiceDate FROM Sales WHERE PurchasePrice > 6500 Required A Required B Required C Required D Required E Write a query to find out the dollar amount of each sales transaction. SELECT SUM ([Quantity] * ]) AS Amount FROM WHERE Sales GROUP BY Based on the three tables and the attributes below, answer the question for Requirement A and write SQL commands for Requirements B to E to retrieve the data from the database. Salesltems Sales Inventory V InventoryID V InvoicelD 8 InventoryID 8 InvoiceID Name InvoiceDate OrderDate Quantity UnitPrice BeverageType Caffeinated CustomerID Flavored EmployeelD PurchasePrice CustomerPO Required: a. What are the foreign keys in the Sales table? b. How many sales transactions were made in March, 2017? c. Which sales transactions were made by the employee whose ID is 'S2038' in the system? d. List the inventory items with purchase price larger than $6,500. e. Write a query to find out the dollar amount of each sales transaction. 81 Complete this question by entering your answers in the tabs below. Required A Required B Required C Required D Required E Required B What are the foreign keys in the Sales table? (Indicate your answers by selecting an "X" next to the applicable amounts.) InvoicelD InvoiceDate OrderDate CustomerID EmployeelD CustomerPO Required A Required B Required C Required D Required E How many sales transactions were made in March, 2017? SELECT COUNT InvoicelD FROM Sales WHERE InvoiceDate BETWEEN #3/1/2017# AND #3/31/2017# Required A Required B Required C Required D Required E Which sales transactions were made by the employee whose ID is 'S203 SELECT FROM Sales WHERE EmployeelD 'S2038' Required A Required B Required C Required D Required E List the inventory items with purchase price larger than $6,500. SELECT InvoicelD InvoiceDate FROM Sales WHERE PurchasePrice > 6500 Required A Required B Required C Required D Required E Write a query to find out the dollar amount of each sales transaction. SELECT SUM ([Quantity] * ]) AS Amount FROM WHERE Sales GROUP BY
Expert Answer:
Answer rating: 100% (QA)
a As per the given tables the table for sales lacks any key The table for sales ha... View the full answer
Related Book For
Organizational Behavior Key Concepts, Skills & Best Practices
ISBN: 978-0078137204
5th edition
Authors: Angelo Kinicki, Mel Fugate
Posted Date:
Students also viewed these accounting questions
-
Based on the three components underlying attitudes, what is your attitude toward the president of the United States?
-
Choose a U.S.-based company (General Electric) that has subsidiaries in foreign countries. Access the companys most recent Form 10-K. Instructions: Prepare a report based on the following...
-
This exercise is based on the three Presentation Layer ER diagrams that follow. a. Describe what is reflected by the entity types and relationship types in Presentation Layer ER diagram number 1. In...
-
A car is initially travelling at 3 0 m / s , which is above the speed limit . The driver sees a speed limit trap ahead and applies the brakes for 5 seconds, causing the car to slow down by 2 m / s...
-
Determine whether B is the inverse of A. a. b. c. d. 1 2 2 2 3 34 2 4. 241 623 100 312 9 413 374 010
-
The pass completion percentages of 10 college football quarterbacks for their freshman and sophomore seasons are shown in the table below. At = 0.10, is there enough evidence to support the claim...
-
A derivative security of European style with expiration in 1 year has this payoff: \(\max (0, \min (3 K-S, S-K))\), where \(K=10\) is the strike price and \(S\) is the price of the underlying stock...
-
In early March, you were preparing your client list with respect to the personal tax return preparation season. When you came across Mr. Ricky's name you realized that Mrs. Ricky had called you...
-
An electricity company pays today a dividend $ 1 . 6 4 per share and the share price is $ 2 7 . If the expected yield is 1 0 % what will be the dividend growth rate?
-
Barnett Industries, Inc., issued $600,000 of 8% bonds on January 1, 2019. The bonds pay interest semiannually on July 1 and January 1. The maturity date on these bonds is December 31, 2028. The firm...
-
. For the central force field (conservative), we have seen that when we define u=- the equations of conservation of angular momentum and energy combine to give us a differential r equation: du do ud...
-
Police obtained a warrant to search a single-family residence for illegal amphetamines and equipment used in the manufacture of same. The warrant also authorized the search of the person of Harry...
-
Explain how each of the following would affect the salaries in the NBA: a. The Chinese government creates a new basketball league to rival the NBA. b. A change in the tax laws reduces the...
-
Tanya Thong has been convicted of indecent exposure stemming from an incident in which she appeared topless on a public beach. On appeal, Thong argues that the indecent exposure statute amounts to...
-
Willy Doolittle, age thirty-eight, is an unemployed male construction worker. He is married with two children in middle school. He has been unable to support his family for the past few weeks because...
-
Use supply and demand curves to explain how the development of the interstate highway system, which allowed fans to travel much greater distances to watch ballgames, increased pay disparities between...
-
Derive the demand schedule from the following demand function: QD = 80 - 10P Precio: 8 6 4 2 0 Amount: Derive the supply schedule from the following supply function: QS = 10P Precio: 0 2 4 6 8...
-
Rowland Textile Inc. manufactures two products: sweatshirts and T-shirts. The manufacturing process involves two activities: cutting and sewing. Expected overhead costs and cost drivers are as...
-
Does Capt. Honors's behavior fit your schema for an effective leader? Explain.
-
1. Assume you are the director of a large group of orthopedic surgeons at Geisinger Health System. You thus are responsible for transitioning the group to a team-based approach to patient care....
-
Which barriers do you think are most likely when communicating with Best Buy customers?
-
Someone says: Our firm focuses on maintaining long-term relationships with our customers. We dont have to do any prospecting. Evaluate this statement.
-
Give some examples of how CRM-enabled sales analytics can provide valuable insights at each of these stages of the customer journey: prospect (lead), initial customer contact, engagement with the...
-
Why do some salespeople not immediately embrace the use of the newest technologies? What are some ways in which a salesperson who is reluctant to adopt new technologies might be influenced to do so?
Study smarter with the SolutionInn App