Question: Write a select statement to list all the columns from the Offices table. 'Select * ' is not allowed. Return the list in DESC Office

Write a select statement to list all the columns from the Offices table. 'Select *' is not allowed. Return the list
in DESC Office order.
2) List the product ID, mfr ID, Name (its description), and dollar value of quantity on hand (price * quantity) of
the products whose dollar value is greater than 20000. Return the list in descending order by their dollar
value.
3) List the Order Number, Order Date, Customer Number, and Sales Rep Number for orders for part '779C' or
'773C'.(Use a compound search condition - OR.)
4) List the Name and Age of all Sales Reps in the following offices: 11; 13.(Use the set membership test - IN.)
5) List the names of all Sales Reps who have the letter 'a'(this is lower case a) as the second character of their
name.
6) Return the Sales Rep ID and Name of any Sales Rep not assigned to an office yet.
7) Show all the sales rep names with last name Smith or Jones.
8) List different titles in the sales reps table. Only list each title once and unknown titles should be ignored.
Duplicate rows are not allowed.
9) List the description of the products which are more than 6 character and less than 10 character long. No
duplicate row is allowed. You can use the build in function length() to do this. For example, length(name)
return the number of characters for attribute called name.
10) For all order Amount less than $700, list the order num with the name of the rep who placed the order and
the name of the customer who made the order and the name of the rep for that customer
11) List the Mfr Id, the Product Id, Company and PRICE of all products bought by customers where customer
number is one of (2111,2112,2105,2119) and where the amount of the order < $10,000. Order the results by
ascending Company. Duplicate row are not allowed.
12) List all orders number, the name of the rep who took the order , the city where the rep has his/her office. Print
the employee whose office is in either Chicago or Denver;
13) List all customers (Customer number, Company, and Credit Limit) and orders (Order Number,
Amount) where the Amount is within $10,000 of the Credit Limit. Therefore:
- Credit_limit should be greater than zero and
- Amount should be greater than zero and
- Amount should be less than credit_limit and
- Credit_limit Amount <=$10000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 sql SELECT FROM Offices ORDER BY Office DESC 2 sql SELECT ProductID MfrID Name Price Quantity AS D... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!