Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Display employee number, first name, last name and the job description for all the employees. You will join MSC_employee and MSC_job tables. Write and execute

Display employee number, first name, last name and the job description for all the employees. You will join MSC_employee and MSC_job tables. Write and execute a SELECT statement that will return the customers name, city, salesmans number assigned to customer, and the assigned salesmans last name for customers located in the state of Pennsylvania.

Display data from the MSC_Product_detail table by performing a Three Table Join with the MSC_Product_detail, MSC_Product_master and MSC_Vendor tables. The SELECT statement will display product number, product description, vendor name and quantity in stock and only for product details that have quantity in stock less than 500. In addition, the result needs to be sorted by ascending value of quantity in stock.

Write a select statement that will display customer number, customer name and the number of orders belong to the customer. You will need to join two tables, use a COUNT aggregate and a GROUP BY clause in your SELECT statement. Override labels with a more descriptive but brief label.

Create and execute a SELECT statement that would provide data for a vendor directory. Display should include vendor number, vendor name, street, city, state, zip code. Concatenate the address elements to look like 1234 Main Street State College, PA 16802. Override the column labels with meaningful descriptions.

Dbo.MSC_Customer

Dbo.MSC_Employee

Empl_number

Empl_first_name

Empl_middle_name

Empl_last_name

Job_code

Dbo.MSC_job

Job_code

Job_description

Dbo.MSC_order

Ord_number

Cust_number

Ord_entry_date

Ord_status

Dbo.MSC_order_detail

Ord_number

Line_number

Prod_number

Ord_quantity

Ship_quantity

Ship_date

Dbo.MSC_product_detail

Prod_number

Vend_number

Qty_in_stock

Dbo.MSC_product_master

Prod_number

Prod_description

Sale_price

Commission_percent

Dbo.MSC_vendor

Vend_number

Vend_street

Vend_city

Vend_state

Vend_zip

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Understand why customers are loyal to a particular service firm.

Answered: 1 week ago