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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started