Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started