Question: 2 . Write a SELECT statement that returns the InvoiceNumber and balance due for every invoice with non-zero balance and an InvoiceDueDate thats less than

2. Write a SELECT statement that returns the InvoiceNumber and balance due for every invoice with non-zero balance and an InvoiceDueDate thats less than 30 days from today.

Here is the result set with 11 rows:

3. Add a column to the query described in exercise 2 that uses the RANK() function to return a column named BalanceRank that ranks the balance due in descending order.

Here is result set with 11 rows:

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!