Docsity

DWM lab manual tasks, Assignments of Data Warehousing

Toggle sidebar
bg1
Lab 08
Lab overview
In this lab activity, you will:
Use a subquery
Update status
Use joins and subqueries
Create a report
Identify and removing duplicates
Generate product variants
Create a price matrix
Create a sales forecast template
Subqueries, Primary & Foreign
Keys, Removing Duplicate Rows,
Cross Join
Task 1: Setting up
You are working with a university database that tracks student enrollment
in courses and their grades. You will create tables and practice data
manipulation with the following contents.
Students: Contains student information with student_id as the primary
key
Courses: Contains course information with course_id as the primary
key
Enrollments: Contains enrollment records with student_id and
course_id as a composite primary key and foreign keys to students and
courses tables respectively
pf3

Partial preview of the text

Download DWM lab manual tasks and more Assignments Data Warehousing in PDF only on Docsity!

Lab 08

Lab overview

In this lab activity, you will:  Use a subquery  Update status  Use joins and subqueries  Create a report  Identify and removing duplicates  Generate product variants  Create a price matrix  Create a sales forecast template

Subqueries, Primary & Foreign

Keys, Removing Duplicate Rows,

Cross Join

Task 1: Setting up

You are working with a university database that tracks student enrollment in courses and their grades. You will create tables and practice data manipulation with the following contents.  Students : Contains student information with student_id as the primary key  Courses : Contains course information with course_id as the primary key  Enrollments : Contains enrollment records with student_id and course_id as a composite primary key and foreign keys to students and courses tables respectively

Display the resulting Students, Courses and Enrollments tables and verify the data as displayed above. Now, using the tables created, complete the following tasks below:

Task 2: Using a subquery

Write a query using a subquery, to find all students who are enrolled in more courses than the average number of courses per student.