Question: In SQL, using a company accounts payable (AP) database write an executable SQL Script that satisfies the following prompts: Script #4 referenced:USE AP SELECT InvoiceNumber,

In SQL, using a company accounts payable (AP) database write an executable SQL Script that satisfies the following prompts:

In SQL, using a company accounts payable (AP) database write an executable

SQL Script that satisfies the following prompts: Script #4 referenced:USE AP SELECT

Script #4 referenced:USE AP SELECT InvoiceNumber, (InvoiceTotal-PaymentTotal-CreditTotal) AS BalanceDue FROM Invoices

5. Create a script that displays InvoiceNumber, InvoiceDate and InvoiceTotal. Set up the script so that it returns the top 30 percent of records based on the largest InvoiceTotal amount (hint - this will require an ORDER BY clause). (query results 35 rows returned) 6. Create a script that displays VendorName, VendorContactFName, and VendorContactLName. Set up the script so the last two column names displayed in the results are FirstName and LastName. Sort the results by LastName. (query results 122 rows returned) 7. Create a script that displays VendorID, InvoiceNumber and InvoiceTotal but only returns records that have a balance due (see \#4). Sort the results by VendorID. (query results - 11 rows returned)

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!