Sales orders example database


Task:

You need the sales orders example database to complete this project.

1. Use the customers table inside of the salesordersexample database, and write a query statement to show all data records of the customers table.

2. Use the customers table inside of the salesordersexample database, and write a query statement to show data records from the CustFirstName, CustLastName, and CustCity columns.

3. Use the employees table inside of the salesordersexample database, and write a query statement to show the employee's EmployeeID, EmpFirstName, EmpLastName, and EmpPhoneNumber, if she's living in the area with 98413 as the zip code.

4. Use the employees table inside of the salesordersexample database, and write a query statement to show each employee's EmployeeID, EmpFirstName, and EmpLastName. Also, in the report, create a new column called EmpAge, in which you use a date expression to calculate and show the employee's age today.

Project Instructions

You need the salesordersexample database to complete this project. If you have not installed the database in MySQL, please refer to #3 installation guide in Week 3 link on eCollege to set up the database.

1. Use INNER JOIN to create a report. In this report, list each vendor's name and the name of each product the vendor has supplied to our company. You should use the Vendors table and the Product_Vendors table in the database to complete this task.

2. Use INNER JOIN to create a report. In this report, list each customer's first name, last name, and the dates when he or she places orders to us. You should use the Orders table and the Customers table in the database to complete this task.

3. Use OUTER JOIN to create a report. In this report, list the name of the products that have never been ordered by far. You should use the Order_Details table and the Products table in the database to complete this task.

4. Use UNION to create a report. In this report, list both customers' and employees' first name, last name, street address, city of residence, state of residence, and zip code. You should use the Customers table and the Employees table in the database to complete this task.

Solution Preview :

Prepared by a verified Expert
Business Management: Sales orders example database
Reference No:- TGS01793919

Now Priced at $70 (50% Discount)

Recommended (97%)

Rated (4.9/5)