Question: ( Refer to code example 6 - 2 . ) What does the ORDER BY clause in the OVER clause for the second SUM function

(Refer to code example 6-2.) What does the ORDER BY clause in the OVER clause for the second SUM function do?
Group of answer choices
It sorts all rows in the result set by the invoice_total column.
It sorts all rows in the result set by the invoice_total column and causes the values in the invoice_total column to be accumulated from one row to the next.
It sorts the rows for each vendor by the invoice_total column and causes the values in the vendor_id column for each vendor to be accumulated from one row to the next.
It sorts the rows for each vendor by the invoice_total column and causes the values in the vendor_total column for each vendor to be accumulated from one row to the next.

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!