Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL 1.Select Product ID, name, and size of all products with a size of S, M, or L sort the results by name. (Production.Product) 2.Select

SQL

1.Select Product ID, name, and size of all products with a size of S, M, or L sort the results by name. (Production.Product)

2.Select Sales Order ID, order date, subtotal, and total for all orders with a total amount due between 5000 dollars and 9,999.99 sort the results by order date. (Sales.SalesOrderHeader)

3.Select all currency which use the word dollar in the currency name and which are not 'US dollar'(Sales.Currency 14)

4.Show all sales person who have been assigned a sales quota and also have got bonus of more than $3000(Sales.SalesPerson 9)

5. Show all the stores which have sales person with id 275 or 282 or 288 or 277 or 290(Sales.Store 307)

6.Show all the bike stores worked by sales person id 282 or 275.(eg. a bike store will have the word bike in the name)(Sales.Store 40)

7. For all products which are listed for less than $20 create a list which shows the name product number in one column. (Production.product 215). For Example if the product is id=922 the result will show Road TIre Tube - TT-R982

8. Show all products which start selling within 2 days of june 1, 2002.( Production.Product 211)

9. Show all products that we start selling in June and may.( Production.Product 211)

10 .Show the maximum list price, average list price, maximum standard cost and minimum standard cost. Make sure all columns have a headings.(Production.Product 1)

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago