Question: Which of the following is true about this SQL program? SELECT line.Inv_Number AS InvNumber, SUM(line.Line_Units*line.Line_Price) AS InvoiceTotal FROM invoice, line WHERE invoice.Inv_Number = line.Inv_Number GROUP

Which of the following is true about this SQL program?

SELECT line.Inv_Number AS InvNumber,

SUM(line.Line_Units*line.Line_Price) AS InvoiceTotal

FROM invoice, line

WHERE invoice.Inv_Number = line.Inv_Number

GROUP BY line.Inv_Number;

Select one:

a. It uses an aggregate function.

b. It joins two tables but the join condition is incorrect.

c. It displays a value every time the invoice number changes.

d. a., b., and c.

e. a. and c. only.

It is not looking for values, its looking on the answer based on the syntax code provided

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!