Write an sql statement that displays the training names and


DPC Antiques Data Set (Focus - GROUP BY & Aggregate):

1. Write an SQL statement that displays the training names and training costs for courses that cost between 1000 and 1200. Don't use the BETWEEN Clause.

2. Using the BETWEEN Clause, write an SQL statement that displays the training names and training costs for courses that cost between 1000 and 1200. Order the output by Training Cost from highest to lowest.

3. Write an SQL statement that displays training IDs and Training names for all courses that contain the word ‘customer' in the training description. Order the output by training name from A-Z.

4. Write an SQL statement that shows any Null values for States in the CUSTOMER Table.

5. Write an SQL statement to count the number of customers in the CUSTOMER Table. Include an Aliases when appropriate.

6. Write an SQL statement that counts the number of customers from Texas. Include an

7. Write an SQL statement that show the last name closest to Z. Include an Aliases when appropriate.

8. Write an SQL statement that lists last names and first names of all customers. Order the rows from A to Z for last name first, and then first name.

9. Write an SQL statement that shows the lowest and highest employee commission. Include an Aliases when appropriate.

10. Write an SQL statement that shows the employees ID and highest employee commission. Group the data by employees ID. Include an Aliases when appropriate.

11. Write an SQL statement that shows the Customers ID and largest purchase. Don't include groups where the largest purchase was less than 1000. Include an Aliases when appropriate.

12. Write an SQL statement that shows Gender, and the total number or men and women that work for DPC Antiques. Order the output by the total from highest to lowest. Include an Aliases when appropriate.

13. Write an SQL statement that shows the average salary of each employee. Don't include salaries below 30000 in the calculation. Include an Aliases where appropriate.

14. Write an SQL statement that shows the State and average salary of each employee. Don't include salaries below 40000 in the calculation. Include an Aliases when appropriate. In addition, group the averages by State. Don't include groups with less than 2 employees.

15. Write an SQL statement that shows employee IDs that earned an A or B in the training with a training ID of 1.

16. Write an SQL statement that shows employee IDs that have completed more than one class with a grade of B or better. Include an Aliases when appropriate.

Request for Solution File

Ask an Expert for Answer!!
Database Management System: Write an sql statement that displays the training names and
Reference No:- TGS02237568

Expected delivery within 24 Hours