All Tutorials will be E-mailed immediately (automatically) after the Payment and can also be Downloaded by clicking on Tutorial Bucket.
Please Check your Spam Email if you do not get the Tutorial.
Click Here to Submit New Syllabus (If course has changed or if you need help with any other course)
Shopping Cart
Your shopping cart is empty!
Categories
CIS 336 iLab 5 Joining Tables
$9.00

CIS 336 iLab 5 Joining Tables

This Tutorial was purchased 6 times & rated A by student like you.

 

This Tutorial contains following Attachments

  • CIS 336 n iLab 5 Joining Tables.docx

CIS336: Lab5: Joining Tables

LAB OVERVIEW
Scenario and Summary
Lab 5 will introduce the concept of multi-table JOINS in order to work with data in two or more related tables simultaneously. This lab may be completed using either DeVry’sOmnymbus EDUPE-APP lab environment, or a local copy of the MySQL database running on your own computer using the OM database tables. The lab will utilize a set of tables that are represented by the ERD (OM_ERD.docx) and are created and populated by the script file (create_OM_db.sql). Follow the instructions in the file CreateOMTables.docx to create your database, tables, and data.

A few IMPORTANT things to note if using EDUPE MySQL:
**There can be NO SPACES in alias names given to a column. For example:
Select unit_price as “Retail Price “ from items; –this does NOT work in EDUPE MySQL.
Any of the following WILL WORK:
Select unit_price as “RetailPrice” from items;
Select unit_price as “Retail_Price” from items;
Select unit_price as Retail_Price from items;
Select unit_price as RetailPrice from items;
**Any calculated fields MUST be given an alias (and note above NO SPACES in alias). For example:
select unit_price * 2 from items; –this does NOT work in EDUPE MySQL
This will work:
select unit_price * 2 as NewPrice from items;

Deliverables
• Lab Report (Answer Sheet) containing both the student-created SQL command(s) for each exercise, and the output showing the results obtained. Be sure your name is on the file.

LAB STEPS: Complete each of the exercises below:
1. Use the JOIN ON syntax to write a query to display the order id, order date, customer name formatted as a single field (i.e. “Tom Jones”) with a heading of Customer, and customer_city for customers residing in the state of OHIO. Sort the output to display the newest orders first.

2. Use the JOIN USING syntax to display the order_id, order date, and shipdate for orders to Karina Lacy that have shipped.
3. Use the implicit join syntax (the WHERE clause) to display the last name, city, order date and ship date for all orders shipped in 2012.

4. Use any join syntax EXCEPT NATURAL JOIN to list the customer_first_name and customer_last_name concatenated with an intervening space as Customer, customer city and state formatted as a single column in the format of “city, ST” with a heading of Location, order_id and order date for orders that have not shipped.
5. List the customer name, order date, zipcode for any customer(s) placing an order for the item titled ‘Etcetera”.

6. Write a query to list the title and artist of ONLY the items that have been ordered. Only list each title once.

7. Write a query to list the title and price of all items that have been ordered by customer Millerton.

8. Write a query to list the last name and order id of customers that ordered any items by the artist Burt Ruggles?

9. Write a query to display a list of titles along with the artist name., sorted by artist name.

10. Write a query to display an invoice for order 693 including the title, quanty, price, and a calculated column to display the line item subtotal (quantity times price) with a heading of Subtotal.

11. Display the order id, last name, title , and quantity for any items where customers have ordered 2 or more of a particular item in an order.

12. The employees table contains a list of employees of a company. An employee may be managed by another employee. To denote an employee’s manager, the employee_id of the manager is entered into the manager_id field of the employee reporting to that manager. In order to produce a list of which managers supervise which employees, the table may be joined to itself using these two attributes (employee_id, manager_id). This is known as a SELF-JOIN. Use a SELF-JOIN on the employees table to produce a result containing two columns: the concatenated last_name and first_name of the manager, and the concatenated last_name and first_name of the employee. Label the first-column supervisor, and the second-column employee. Order the output by the supervisor’s last_name and first_name.

13. Write a query to display the order id, order date, ship date, and customer last name for all SHIPPED orders placed on the internet (no employee id). Show the most recently shipped orders first.
14. Write a query that displays the order id, order date, and employee name as a single field labeled Employee for each order that an employee assisted with.

15. Write a query that displays the order id, order date, customer name as a single field labeled Customer for all orders for the sales rep Thomas Hardy, sorted by customer last name.

This is the end of Lab 5.

Write a review

Order Id


Order Id will be kept Confidential
Your Name:


Your Review:
Rating:   A   B   C   D   F  

Enter the code in the box below:



Related Tutorials
$9.00

This Tutorial was purchased 4 times & rated A+ by student like you.

(TCO 6) Which of the following keywords is used to remove a row in a table? (TCO 6) When using the ALTER TABLE...DROP COLUMN command, which of the following is NOT correct? (TCO 6) Which of the following commands will add a new column named FIRSTORDERDATE to the CUSTOMERS table to store t..
$9.00

This Tutorial was purchased 3 times & rated No rating by student like you.

(TCO 8) If a Cartesian join is used to link table A which contains five rows to table B which contains eight rows, there will be _______ rows in the results. (TCO 8) Which of the following statements will produce the value 21.1? (TCO 8) Which of the following format elements will display ..
$8.99

This Tutorial was purchased 3 times & rated A by student like you.

(TCO 7) Which of the following types of columns will automatically right-align the data when it is displayed? (TCO 7) Which of the following SQL statements will display the profit generated by each book currently stored in the BOOKS table? (You do not need to see the table structure for this ..
$9.00

This Tutorial was purchased 2 times & rated No rating by student like you.

(TCO 2) Explain what a composite attribute is (TCO 1) Data constitutes the building blocks of (TCO 1) Successful database design is first and foremost based on _____________ requirements. (TCO 1) The lowest level in a database hierarchy is the ____________ or value as it is often refe..
$7.49

This Tutorial was purchased 3 times & rated A by student like you.

(TCO 3) Normalization works through a series of stages called normal forms. Typically _________ stages must be completed before a table can be considered normalized. (TCO 3) The conflicts between design efficiency, information requirements, and processing speed are often resolved through ..
$32.00

This Tutorial was purchased 23 times & rated A+ by student like you.

CIS 336 Final Exam 4 Sets of Answers ..
$11.00

This Tutorial was purchased 10 times & rated A+ by student like you.

1. (TCO 7) For every order, list the order number, order date, part number, part description, and item class for each part that makes up the order. 2. (TCO 8) Write a query that will display the customer number, last name, and first name for every customer I whose first name begins with the l..
$11.00

This Tutorial was purchased 4 times & rated A by student like you.

1. (TCO 2) Explain what physical independence means. (Points : 15) 2. (TCO 8) Sally wants to query the EMP table and determine how many of the employees live in each of the cities the company has factories in. She writes the following query but it does not work. What is wrong with the way the..
$11.00

This Tutorial was purchased 8 times & rated A+ by student like you.

1. (TCO 1) Most DBMS are referred to as _____________database management systems. (Points : 4) elemental linked hierarchical relational 2. (TCO 1) A relational DBMS provides protection of the _______________________ through security, control, and recovery facilities. (Points : 4) ..
$11.00

This Tutorial was purchased 6 times & rated A by student like you.

1. (TCO 1) Most DBMS are referred to as _____________database management systems. (Points : 4) elemental linked hierarchical relational 2. (TCO 1) Data constitutes the building blocks of _____________. (Points : 4) information processing applications programming 3. (TC..
$9.00

This Tutorial was purchased 6 times & rated A+ by student like you.

CIS-336: Lab7: Working with Views LAB OVERVIEW Lab 7 will introduce the concept of database views. This lab may be completed using either DeVry’sOmnymbus EDUPE-APP lab environment, or a local copy of the MySQL database running on your own computer using the OM database tables. The lab will ..
$7.00

This Tutorial was purchased 1 times & rated A by student like you.

CIS 336 Week 6 Quiz     Question 1.                  (TCO 6) Which of the following keywords can be used to change the size, datatype, or default value of an existing column?   ..
$9.00

This Tutorial was purchased 4 times & rated A by student like you.

CIS336: Lab 6: Group Functions and Subqueries LAB OVERVIEW Scenario and Summary Lab 6 will introduce the concept of group functions and subqueries to meet more complex report requirements. This lab may be completed using either DeVry’sOmnymbus EDUPE-APP lab environment, or a local co..
$7.00

This Tutorial was purchased 3 times & rated A+ by student like you.

CIS 336 Week 5 Quiz       Question 1.                  (TCO 8) The ____ set operator in SQL combines rows from two queries and returns only the values that are common between the tw..
$9.00

This Tutorial was purchased 6 times & rated A by student like you.

CIS336: Lab5: Joining Tables LAB OVERVIEW Scenario and Summary Lab 5 will introduce the concept of multi-table JOINS in order to work with data in two or more related tables simultaneously. This lab may be completed using either DeVry’sOmnymbus EDUPE-APP lab environment, or a local copy o..
$7.00

This Tutorial was purchased 1 times & rated No rating by student like you.

CIS 336 Week 4 Quiz         Question 1.                  (TCO 7) Which of the following types of columns will automatically right-align the data when it is displayed? &..
$9.00

This Tutorial was purchased 3 times & rated No rating by student like you.

CIS336: Lab 4: Introduction to Select, Insert, Update, and Delete Statements LAB OVERVIEW Lab 4 will introduce the various aspects of the SQL select statement and the methods of retrieving data from the database tables. This lab will also introduce the fundamentals of updating and deleting ..
$7.00

This Tutorial was purchased 1 times & rated No rating by student like you.

CIS 336 Week 3 Quiz     Question 1.                  (TCO 3) When designing a database, you should _____   Question 2.          ..
$10.00

This Tutorial was purchased 8 times & rated A+ by student like you.

CIS-336: Lab 3: Building the Physical LAB OVERVIEW Scenario and Summary The lab for this week addresses taking a logical database design (data model) and transforming it into a physical model (tables, constraints, and relationships). As part of the lab, you will need to downl..
$6.00

This Tutorial was purchased 2 times & rated A by student like you.

CIS 336 Week 2 Quiz                                               ..
$9.00

This Tutorial was purchased 3 times & rated A by student like you.

CIS336 Lab 2: The Expanded Entity Relationship Diagram LAB OVERVIEW Scenario and Summary This lab introduces the next step in creating a data model, the Entity Relationship Diagram (ERD). You will be given a business scenario for a University Medical Center, which is a small community hos..
$9.00

This Tutorial was purchased 1 times & rated No rating by student like you.

CIS336 Lab 1: Normal Forms and Entity Relationship Diagrams Introduction In this exercise, you will analyze a de-normalized data set presented in the form of a spreadsheet. You will next construct a series of dependency diagrams, transforming the evolving data model from First Normal Form (..
$25.00

This Tutorial was purchased 3 times & rated A by student like you.

This project is designed to touch all aspects of the fundamental concepts of database design and logical data modeling covered during the class. Each student will be responsible for designing, developing, and demonstrating the functionality of a database created based on a set of business specifi..
$15.00

This Tutorial was purchased 8 times & rated A by student like you.

CIS 336 Final Exam       Question 1. 1. (TCO 1) A DBMS performs several important functions that guarantee the integrity and consistency of the data in the database. Which of the following is NOT one of those functions?   Question 2. 2. (TCO 1) A relati..
Tags:
CIS 336 © 2017 All Rights Reserved.Powered by:Ash Tutorial