Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL ASSIGMENT EXERCISE 49: Select the customer name and website URL for customers that have placed orders before January 16, 2013. EXERCISE 50: Find the

SQL ASSIGMENT

EXERCISE 49:

Select the customer name and website URL for customers that have placed orders before January 16, 2013.

EXERCISE 50:

Find the person (people) name, quantity of items ordered from people, orders and order lines.

EXERCISE 51:

Using the customers, invoices and invoice lines table, produce a report of the customer name, invoice date, quantity of items as TotalQuantity and extended price as TotalPrice for each

EXERCISE 52:

Using the query from exercise 51, produce the Top 10 TotalPrices.

EXERCISE 53:

By customer name, determine and present the number of invoices as NumberOfInvoices, the total quantity of items purchased and the total extended price.

EXERCISE 54:

Which is the best customer as defined by TotalExtendedPrice?

EXERCISE 55:

Explain what the following query does and how many rows returned.

select StockItemName, sum(Quantity)as Total

from Warehouse.StockItems SI

join Sales.OrderLines OL

on SI.StockItemID= OL.StockItemID

groupby StockItemName;

EXERCISE 56:

Explain what the following query does and how many rows returned.

select SupplierName, OrderDate

from Purchasing.Suppliers Sup

join Purchasing.PurchaseOrders PO

on SUP.SupplierID= PO.SupplierID

where OrderDate='20200415';

EXERCISE 57:

Which symbol is used to apply a wildcard in Access and which is used to apply a wildcard in SQL Server?

EXERCISE 58:

Which symbol is used to append in Access and which is used to append in SQL Server?

EXERCISE 59:

Which keyword is used to filter the results when the filter is on an aggregation?

EXERCISE 30:

In an aggregation query, what keywords are used on columns that are not being aggregated?

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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Databases questions

Question

please dont use chat gpt or other AI 3 5 . HAZOP ( )

Answered: 1 week ago