

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


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
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:
Write a query using a subquery, to find all students who are enrolled in more courses than the average number of courses per student.