Consider the SQL query in Figure 1-19. a. How is Sales to Date calculated? b. How would
Question:
Consider the SQL query in Figure 1-19.
a. How is Sales to Date calculated?
b. How would the query have to change if Helen Jarvis wanted to see the results for all of the product lines, not just the Home Office product line?
Transcribed Image Text:
SELECT Product.ProductID, Product.ProductDescription, Product.PRCurrentYearSalesGoal, (OrderQuantity • ProductPrice) AS SalesToDate FROM Order.OrderLine, Product.ProductLine WHERE Order.OrderNumber = OrderLine.OrderNumber AND Product.ProductID = OrderedProduct.ProductID AND Product.ProductID = ProductLine.ProductID AND Product.ProductLineName = "Home Office";
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 0% (4 reviews)
a SalesToDate is calculated by multiplying the quan...View the full answer
Answered By
PALASH JHANWAR
I am a Chartered Accountant with AIR 45 in CA - IPCC. I am a Merit Holder ( B.Com ). The following is my educational details.
PLEASE ACCESS MY RESUME FROM THE FOLLOWING LINK: https://drive.google.com/file/d/1hYR1uch-ff6MRC_cDB07K6VqY9kQ3SFL/view?usp=sharing
3.80+
3+ Reviews
10+ Question Solved
Related Book For
Essentials of Database Management
ISBN: 978-0133405682
1st edition
Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman
Question Posted:
Students also viewed these Computer science questions
-
Consider the SQL query select p.a1 from p, r1, r2 where p.a1 = r1.a1 or p.a1 = r2.a1. Under what conditions does the preceding query select values of p.a1 that are either in r1 or in r2? Examine...
-
Consider the SQL query whose answer is shown in Figure 3.2. Sid Name Login Age Gpa 53831 Madayan madayan@ 11 1.8 53832 Gulda guldu@music 12 2.0 Students with age < 18 on Instance S 1....
-
Toys Galore currently has a credit limit of $7,500. Because Toys Galore has an excellent credit rating, TAL Distributors is increasing the companys credit limit to $10,000. If you run the SQL query...
-
A dipole of 6.6 nC point charges arranged 0.16 cm apart is centered at the origin and oriented along the x-axis. The positive charge is on the negative x axis. How m energy is required to place a...
-
In 1954 the English runner Roger Bannister broke the four-minute barrier for the mile with a time of 3:59.4 s (3 min and 59.4 s). In 1999 the Moroccan runner Hicham el-Guerrouj set a record of...
-
One mole of water and one mole of CO2 are placed in a reactor at 3000 K and a total pressure of 400 kPa. The water dissociates into hydrogen and oxygen, and the carbon dioxide dissociates into carbon...
-
Use the PewKids dataset to run two regression models, both using family income as the dependent variable. In the first, use the five race referencegroup variables. In the second, use the race...
-
On May 20, 2015, Montero Co. paid $1,000,000 to acquire 25,000 common shares (10%) of ORD Corp. as a long-term investment. On August 5, 2016, Montero sold one-half of these shares for $625,000. What...
-
what is financial fraud and how it effects the economy? How artificial intelligence plays role in fraud.
-
Skipper Company manufactures toy boats and uses an activity-based costing system. The following information is provided for the month of May. Estimated Quantity of Allocation Base 5.000 parts 5.000...
-
Consider Figure 1-14. Explain the meaning of the line that connects ORDER to INVOICE and the line that connects INVOICE to PAYMENT. What does this say about how Pine Valley Furniture Company does...
-
Give three reasons why many system designers believe that data modeling is the most important part of the systems development process.
-
It is common to read articles in the newspapers by people who think Canadians pay too much in taxes. One popular concept is "tax freedom day," the day in the year beyond which you get to keep your...
-
1 Evaluate the given limits using the 10. f(x) = (x-3)(x-5) (a) lim f(x) X-3 (b) lim f(x) x-3+ (c) lim f(x) X-3 graph of the function (d) lim f(x) x+5= (e) lim f(x) x+5+ (f) lim f(x) X-5 50 y -50 2 6...
-
In Year 1 , Stallman Co . had a break - even point of 8 0 , 0 0 0 units, a selling price of $ 1 9 per unit, and fixed costs of $ 2 0 0 , 0 0 0 . What is Stallman Co . s variable cost per unit? (...
-
What will be the output of following statements: int a = 3; if(a!= 3){ cout
-
28. What will this program print, assuming dynamic scoping? (10 points) Consider the following code snippet for problems #29-31. For this problem, assume dynamic scoping. program main() 1. 2. { 3. 4....
-
The reaction X + Y products was studied using the method of initial rates. The initial rate of consumption of X was measured in three different experiments. Data are provided below. Expt [X] 0 (in...
-
A manufacturer of cereal is considering three alternative box colorsred, yellow, and blue. To check whether such a consideration has any effect on sales, 16 stores of approximately equal size are...
-
In muscle tissue, the ratio of phosphorylase a to phosphorylase b determines the rate of conversion of glycogen to glucose 1phosphate. Classify how each event affects the rate of glycogen breakdown...
-
How many MIPS instructions does it take to implement the C code from Exercise 2.27? If the variables a and b are initialized to 10 and 1 and all elements of D are initially 0, what is the total...
-
Translate the following loop into C. Assume that the C-level integer i is held in register $t1, $s2 holds the C-level integer called result, and $s0 holds the base address of the integer MemArray....
-
Implement the following C code in MIPS assembly. What is the total number of MIPS instructions needed to execute the function int fib(int n){ if (n==0) return 0; else if (n 1) == return 1; else...
-
Callaho Inc. began operations on January 1 , 2 0 1 8 . Its adjusted trial balance at December 3 1 , 2 0 1 9 and 2 0 2 0 is shown below. Other information regarding Callaho Inc. and its activities...
-
Required: 1. Complete the following: a. Colnpute the unit product cost under absorption costing. b. What is the company's absorption costing net operating income (loss) for the quarter? c. Reconcile...
-
Bond Valuation with Semiannual Payments Renfro Rentals has issued bonds that have an 8% coupon rate, payable semiannually. The bonds mature in 6 years, have a face value of $1,000, and a yield to...
Study smarter with the SolutionInn App