Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Larry Ellison Database Genius Of Oracle

Authors: Craig Peters

1st Edition

0766019748, 978-0766019744

More Books

Students also viewed these Databases questions