Question: Do the following SQL questions. The resulting columns must all have descriptive names Write a select statement to list all the columns from the Offices

Do the following SQL questions. The resulting columns must all have descriptive names

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

List the Product Name (its description), and dollar value of quantity on hand (price * quantity) . Return the list in descending order by value.

New: List the Order Number, Order Date, Customer Number and Sales Rep Number for orders for part 'XK47' or '775C'. (Use a compound search condition - OR.)

List the Name and Age for all Sales Reps in the following offices: 12; 21; 13. (Use the set membership test - IN.)

List the names of all Sales Reps who have the letter 'o' (this is lower case o) as the second character of their name.

Return the Sales Rep ID and Name of any Sales Rep not assigned to an office yet.

Show all the sales rep names with last name Smith.

List different titles in the sales reps table. Only list each title once and unknown titles should be ignored.

List the description of the products which are at least 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.

List the the order nums 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!