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: Table Joins Reference is attached below,

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

image text in transcribedimage text in transcribed

Table Joins Reference is attached below, thanks!

image text in transcribed

8. Create a script that displays VendorName, InvoiceDate, InvoiceNumber and AccountDescription, however set up the script so the column names display as Vendor, Date, Number and Description. Sort the results by Vendor and Description. (query results - 118 rows returned) 9. Bill wants to find out how many of his vendors are in the same VendorZipCode that do not have a name starting with the letter C. When you create the script, display VendorName, VendorCity, VendorState and VendorZipCode columns in the results and sort it by VendorState, VendorName and VendorZipCode. Bill said the last script writer he worked with used a self join to extract this type of information. Looking up the best way to create the script, you located these notes: - Use a specific keyword in the SELECT clause that will remove duplicate values - Correlate the tables and qualify every column - Use the field that contains the same values you're looking for as the join field - Add criteria where one tables common field does not equal the other tables common field (query results - 31 rows returned) Submit the 9 completed scripts within a zip folder in the Basics SQL Clauses Assignment page. Vendors joins Invoices using VendorID Invoices joins InvoiceLineItems using InvoiceID InvoiceLineItems join GLAccounts using AccountNo

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_2

Step: 3

blur-text-image_3

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

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions