subject

Write a query to display the buyer number, material id, material name, purchase date, current purchase total, total of all purchases by that buyer, and the percentage of the total of all purchases by that buyer that is represented by the current purchase. The current purchase is the purchase quantity multiplied by the purchase price for that purchase. The total of all purchases is the sum of adding up all purchases (quantity multiplied by price) made by that buyer. The percentage of the total of all purchases by that buyer that is represented by the current purchase is calculated at the current purchase divided by the total of all purchases by that buyer multiplied by 100. Sort the result by the total of all purchases for each buyer in descending order, then by the buyer number in ascending order, then by the current purchase in descending order. For example, the first row of output shows that buyer 480 purchased material 289, which is Scrap Iron, on April 22, 2019. The total cost of that purchase was $472,350. All purchases in the history of buyer 480 is $1,689,466. The current p

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
Jaina and tomas are being considered as new tenants in an apartment. the landlord looks at their creditworthiness because he wants to be sure his new tenant pays the rent on time and in full. the table below summarizes the information that was on their applications. application information questions jaina tomas how many years have you had your job? 5 2 what is your monthly salary? $1,850 $2,500 how many credit cards do you have? 4 1 how much debt do you have? $13,000 $7,000 how many times were you late with payments on credit cards in the past year? 5 1 who will the landlord decide to be more creditworthy and why? tomas because the ratio of his debt to income is less. jaina because she has had her job longer, which makes her look more stable. jaina because she has more credit cards available to her. tomas because he makes more money per month.
Answers: 2
question
Computers and Technology, 25.06.2019 22:30
If you were working on a mainframe, which of the following operating systems would you most likely be using?
Answers: 1
question
Computers and Technology, 26.06.2019 00:40
What will happen if we access all the limitations of computers into it? just like intelligence, self learning, feeling and other.
Answers: 1
question
Computers and Technology, 26.06.2019 01:40
Which option ensures that different parts of the document can have different page layouts? a. page breaks b. section titles c. section breaks d. paragraph options
Answers: 1
You know the right answer?
Write a query to display the buyer number, material id, material name, purchase date, current purcha...
Questions
question
Mathematics, 01.02.2020 01:02
question
Health, 01.02.2020 01:02
Questions on the website: 13722363