Q1: The Rep table contains the Sales Representatives Q2: From the Item and Order Line table:...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q1: The Rep table contains the Sales Representatives Q2: From the Item and Order Line table: 111 11 Display the Sales Rep as "Last_Name, First_Name" in a column titled Sales Rep_Name Use the TRIM function to trim blank spaces from the Last_Name Also display the number of customers assigned to each rep as Num_Customers. Order the output by Last_Name, First_Name. Q3: From the Customer and Orders table: For Storehouse 3, display all the item Descriptions, the Sum of Num_Ordered as Total_Ordered and the Sum of On_Hand as Total_On_Hand Order the output by item Description. 1111 Q4: From the Customers and Order_Line table: Display all customers in the state of California (CA) with MORE THAN ONE order, Display their Customer_Names and the Number of Orders the customer made. Q5: From the Item and Order Line tables, 111 Display the Customer Names and the Total Sales. Order from greatest total sales to lowest total sales Calculate Total Sales as the sum of Num_Ordered * Quoted_Price Use the correct JOIN to display ALL the items by Description. Also include these columns: the average inventory price (Price in the Item table), the maximum Quoted Price and Note: The maximum and minimum will be null if no orders for that item have been placed. Q6: In the REP table, change the last name for Rep_Num 60 from Sefton to Sefton-Perez. Q7: Add Rep_num 75 to the Rep table with the following information Last Name: Doe First Name: John Street: 1717 University Drive City: Northfield State: CA Postal Code: 90098 Commission: 0 Rate: .06 Q8: Update the Customer table by assigning rep_num 75 to all customers in Northfield, CA Q9: From all the tables except the Rep table. For each order placed for num_ordered between 5 and 10 inclusive, OR that ordered on 10/13/2015, 10/14/2015, or on 10/15/2015, Display the Customer Name, Order date, item Description, and Num Ordered List the output by Order Date Q10: For the Item table, For each item that has a category of GME or PZL, and has 40 or more on hand, set the storehouse to 3 if the storehouse is not 3. Q11: From all the tables except the Rep table. List the order number and order date for each order that either was placed by a customer with Almondton in their name or contains an order line item for an item with Fire in its description List each order and order date ONLY ONCE. Q1: The Rep table contains the Sales Representatives Q2: From the Item and Order Line table: 111 11 Display the Sales Rep as "Last_Name, First_Name" in a column titled Sales Rep_Name Use the TRIM function to trim blank spaces from the Last_Name Also display the number of customers assigned to each rep as Num_Customers. Order the output by Last_Name, First_Name. Q3: From the Customer and Orders table: For Storehouse 3, display all the item Descriptions, the Sum of Num_Ordered as Total_Ordered and the Sum of On_Hand as Total_On_Hand Order the output by item Description. 1111 Q4: From the Customers and Order_Line table: Display all customers in the state of California (CA) with MORE THAN ONE order, Display their Customer_Names and the Number of Orders the customer made. Q5: From the Item and Order Line tables, 111 Display the Customer Names and the Total Sales. Order from greatest total sales to lowest total sales Calculate Total Sales as the sum of Num_Ordered * Quoted_Price Use the correct JOIN to display ALL the items by Description. Also include these columns: the average inventory price (Price in the Item table), the maximum Quoted Price and Note: The maximum and minimum will be null if no orders for that item have been placed. Q6: In the REP table, change the last name for Rep_Num 60 from Sefton to Sefton-Perez. Q7: Add Rep_num 75 to the Rep table with the following information Last Name: Doe First Name: John Street: 1717 University Drive City: Northfield State: CA Postal Code: 90098 Commission: 0 Rate: .06 Q8: Update the Customer table by assigning rep_num 75 to all customers in Northfield, CA Q9: From all the tables except the Rep table. For each order placed for num_ordered between 5 and 10 inclusive, OR that ordered on 10/13/2015, 10/14/2015, or on 10/15/2015, Display the Customer Name, Order date, item Description, and Num Ordered List the output by Order Date Q10: For the Item table, For each item that has a category of GME or PZL, and has 40 or more on hand, set the storehouse to 3 if the storehouse is not 3. Q11: From all the tables except the Rep table. List the order number and order date for each order that either was placed by a customer with Almondton in their name or contains an order line item for an item with Fire in its description List each order and order date ONLY ONCE.
Expert Answer:
Related Book For
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last
Posted Date:
Students also viewed these algorithms questions
-
In the following exercises, you will use the data in the TAL Distributors database shown in Figure 2-1 in Chapter 2. (If you use a computer to complete these exercises, use a copy of the original TAL...
-
In the TAL Distributors database shown in Figure 2-1, the Rep table contains four rows and the Customer table contains 12 rows. How many rows would be contained in the Cartesian product of these two...
-
A. Discuss the following conceptual model/framework of Orem's Self-Care Theory CONDITIONING FACTORS (12 MARKS) Orem's Self-Care Theory Conceptual Framework SELF-CARE AGENCY SELF-CARE DEFICIT NURSING...
-
How can industries develop an online presence that incorporates marketing strategy?
-
A 0.530 kg sample of liquid water and a sample of ice are placed in a thermally insulated container. The container also contains a device that transfers energy as heat from the liquid water to the...
-
The condition for irreversibility of a cycle is: (a) \(\oint \frac{d Q}{T} <0\) (b) \(\oint \frac{d Q}{T}>0\) (c) \(\oint \frac{d Q}{T}=0\) (d) None of the above
-
Fifty-six percent of men do not look forward to going clothes shopping for themselves. You randomly select eight men. Find the probability that the number of men who do not look forward to going...
-
Damon Associates reported the following transactions during September 2017: Sept. 8 Sold $3,000 of merchandise to Bruce Company for cash. The cost of the merchandise was $1,250 10 Owner invested...
-
If an 3 x 3 matrix 1-1 A =1 2 6. then a32 is O a. 6 O b. -6 O c. 0 O d. does not exist e. non of them Clear my choice
-
1 Problem 4 - A firm's optimal output choice (10 points) Consider a price taking firm, where the market price for the output is given by P. The firm's output choice is denote by Q. The firm has a...
-
National health insurance refers to an insurance scheme that covers the entire population and is usually established by national registration. While available literature shows that utilization levels...
-
Westeros, Inc. receives scabbards (sheath for a sword) from two different suppliers. 70 percent of its scabbards come from Knights Watch, LLC, while 30 percent come from Crow, Inc. Records indicate...
-
(b) If the game below is repeated twice, the following strategies form an SPNE when = 1: Strategies Player 1 period 1: Play C period 2: Play B if (C,Y) in stage 1. Play A otherwise. Player 2 period...
-
1. Drug BB might move into red blood cells by simple diffusion through the lipid bilayer. Suppose that you place red blood cells (never before exposed to drug BB) and place them in a bathing solution...
-
Brands include social media lingo in ads designed for traditional media The practice is known as borrowed interest For example, an ad using this tactic might leverage the word like and a thumbs-up...
-
According during to the IRS, individuals filing federal income tax returns prior to March 31 received an average refund of $1,088 in 2018. Consider the population of "last-minute" filers who mail...
-
Use a Web browser to find three examples of static Web pages and three examples of dynamic Web pages, and note the URLs for each page you find. Explain the purpose of each page and why you believe it...
-
Describe the purpose of the SUBTRACT command in relational algebra.
-
The following exercises are based on the Solmaris Condominium Group database shown in Figures 1-21 through 1-25. No computer work is required. 1. Using the types of entities found in the Solmaris...
-
Using a financial calculator, solve for the unknowns in each of the following situations. a. On June 1, 2024, Holly Golightly purchases lakefront property from her neighbor, George Peppard, and...
-
Sally W. Emanual, a teacher, had the following dividends and interest during 2022: Additional information pertaining to Sally Emanual includes The taxable portion of the pension is \($7,000.\) Sally...
-
Ed owns Oak Knoll Apartments. During the year, Fred, a tenant, moved to another state. Fred paid Ed \($1,000\) to cancel the two-year lease he had signed. Ed subsequently began renting the unit to...
Study smarter with the SolutionInn App