Create 4 database schemas (constructco, fact, saleco, and largeco). For the homework you will submit a SINGLE
Fantastic news! We've Found the answer you've been seeking!
Question:
Create 4 database schemas (constructco, fact, saleco, and largeco). For the homework you will submit a SINGLE SQL script. To use each of the database schema you need to set the schema that your following statements are to work on. The statement is "USE CONSTRUCTCO;" to access the tables in the constructco schema. Make sure to place your name in the script and the question numbers commented out. Use the Fact schema (Page 341 in the book) for the following questions
- Write a query to display the Product SKU, Product description and the Product Price as US currency (2 decimal points) sorted by Product Price. Label your column as SKU, Description and Price.
- Write a query to display the last name, first name, title, department number for all employees who were hired during the calendar year of 2015. Sort the output by department number, last name, and first name.
- Write a query to display the vender ID, name and Product SKU for ALL vendors, including those who do NOT provide us with products currently.
- Write a query to display the vender ID and vender name for those vendors who do not currently supply us with products.
- Write a query to display the employee number, last name, title, email and department name of each employee whose job title ends in the word “ASSOCIATE” (case insensitive). Sorted by department number and employee title.
- Write a query to display the brand ID, brand name, brand type, and average price of product for the brand that has the largest average product price.
Related Book For
Posted Date: