Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ive distribution continuous distribution discrete distribution logical functions ranking functions analytic functions Exercises 1. table. The first column, Contact, is the vendor contact name in

image text in transcribed

ive distribution continuous distribution discrete distribution logical functions ranking functions analytic functions Exercises 1. table. The first column, Contact, is the vendor contact name in this format: Write a SELECT statement that returns two columns based on the Vendors column, Phone, is the VendorPhone column without the area code. Only first name followed by last initial (for example, "John S!) The second return rows for those vendors in the 559 area code. Sort the result set by first 2. Write a SELECT statement that returns the InvoiceNumber and balance due for every invoice with a non-zero balance and an Invoice DueDate that's less 3. Modify the search expression for InvoiceDueDate from the solution for exercise 2. Rather than 30 days from today, return invoices due before the last name, then last name. than 30 days from today. day of the current month. 4. Write a summary query WITH CUBE that returns LineItemSum (which is the sum of InvoiceLineItemAmount) grouped by Account (an alias for AccountDescription) and State (an alias for VendorState). Use the CASE and GROUPING function to substitute the literal value "* ALL*" for the summary rows with null values. 5. Add a column to the query described in exercise 2 that uses the RANKO) function to return a column named BalanceRank that ranks the balance due i descending order. Shanol

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

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

Why arent the other purchases suspicious?

Answered: 1 week ago