Task 11 (10 marks) We allow some customers to pay in instalments. Create a view that...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Task 11 (10 marks) We allow some customers to pay in instalments. Create a view that shows the total amount of money that has been paid towards each job. Only show the jobs that have been completed. But make sure to include completed jobs even if they have had no payments. This can be achieved by selecting from the JobCompleted table, and left joining to the Payment table. The result should have (Jobld, Amount Paid, LatestTimestamp, NumberOfPayments) Latest Timestamp should show the timestamp of the last payment made. If there are any jobs that have not received any payments, use IFNULL() to ensure that the Amount Paid shows zero and that LatestTimestamp instead shows the time of job completion. Task 11 (10 marks) We allow some customers to pay in instalments. Create a view that shows the total amount of money that has been paid towards each job. Only show the jobs that have been completed. But make sure to include completed jobs even if they have had no payments. This can be achieved by selecting from the JobCompleted table, and left joining to the Payment table. The result should have (Jobld, Amount Paid, LatestTimestamp, NumberOfPayments) Latest Timestamp should show the timestamp of the last payment made. If there are any jobs that have not received any payments, use IFNULL() to ensure that the Amount Paid shows zero and that LatestTimestamp instead shows the time of job completion.
Expert Answer:
Answer rating: 100% (QA)
Solution This SQL query would show the required view CREATE VIEW J... View the full answer
Related Book For
Financial Accounting
ISBN: 978-1118334324
9th edition
Authors: Jerry J. Weygandt, Paul D. Kimmel, Donald E. Kieso
Posted Date:
Students also viewed these computer engineering questions
-
Alyson, another investor, has also purchased an IIP for the original price of $918.29787051119. Two years pass, and Alyson has just received the annual payment of $42. She is considering selling the...
-
On June 1, 2015, Little Corporation received $5,320 in advance for a two-year rental of some land and properly credited Unearned Rent. In the adjusting entry at December 31, 2015, there would be a a....
-
The primary method of employing good-better-best (GBB) pricing to a category of products is via... feature differentiation liking by similarity social movement marketing priming emotions
-
Complete your review of the Stevens District Hospital Strategic Planning Scenario, you have been asked to provide a presentation to the governing board of the hospital. This board is comprised of the...
-
At a recent meeting, it was decided to go ahead with the introduction of a new product if interested consumers would be willing, on average, to pay $20.00 for the product. A study was conducted, with...
-
Consider the two vectors A = 3i 2j and B = i 4j. Calculate (a) A + B, (b) A B, (c) |A + B|, (d) |A B|, and (e) the directions of A + B and A B.
-
What are Wiener-Khintchine formulas?
-
A comparative income statement is given below for McKenzie Sales, Ltd., of Toronto: Members of the companys board of directors are surprised to see that net income increased by only $38,000 when...
-
Abby is a 20-year-old female college student. For at least the last 3 months, Abby has experienced ongoing anxiety and worry without a specific cause for these feelings. She has been restless and has...
-
Design a beam of ASTM A36 steel with allowable bending stress of 160 MPa to support the load shown in Figure P4-33. Assume a standard wide flange beam from Appendix F, or some other source can be...
-
Exercise 9-1 (Algo) Prepare a Flexible Budget [LO9-1] Puget Sound Divers is a company that provides diving services such as underwater ship repairs to clients in the Puget Sound area. The company's...
-
Why is foreign exchange considered an asset class?
-
What are internal forward rates? How are they used in the international control process?
-
What is different about an EVA-based contingent budgeting and control system?
-
What is variance analysis? What role does it play in the control process?
-
Would you expect the bid-ask percentage spread to be different for the Indonesian rupiah versus the U.S. dollar than for the Japanese yen?
-
Draw the simplest possible (i.e. with fewest number of states) NFA that accepts the following language over the alphabet {A,E,i,o,u,M,N,P,t,r}: the set of all strings that start with an upper case...
-
On April 29, 2015, Auk Corporation acquires 100% of the outstanding stock of Amazon Corporation (E & P of $750,000) for $1.2 million. Amazon has assets with a fair market value of $1.4 million (basis...
-
The income statement for Weeping Willow Golf Club for the month ending July 31 shows Service Revenue $16,400, Salaries and Wages Expense $8,200, Maintenance and Repairs Expense $2,500, and Net Income...
-
Explain why the Inventory account will usually require adjustment at year-end.
-
Tabares Corporation had these transactions during 2015. (a) Issued $50,000 par value common stock for cash. (b) Purchased a machine for $30,000, giving a long-term note in exchange. (c) Issued...
-
What would the QA/QC planning grid (see Figure 12. 6) look like for a project you have been involved in? Data from Figure 12. 6 Table 12.6 QA/QC planning grid, with examples Quality assurance...
-
Why is the definition of quality critical to the success and acceptance of a project?
-
What is the purpose of the Quality Management Plan?
Study smarter with the SolutionInn App