IMS-CSET-201 Lab Assignment 5.2
IMS-CSET-201 Lab Assignment 5.2
CO-Mapping
CO1 CO2 CO3
Q1 √ √
Q2 √ √
Q3 √ √
Q4 √ √
Q5 √ √
Q6 √ √
Q7 √ √
Q8 √ √
Q9 √ √
Q10 √ √
Q11 √ √
A- Type- Lab Assignment/Tutorial # No. (Week 5, Assignment No. 2)
Objectives
1. Students will be able to learn Aggregate functions.
2. Student will be able to learn, Order by, Group by and View functions.
3. Student will be able to learn DML and DDL commands.
Bennett University database system
Bennett University is one of the private university located in Greater Noida, Uttar Pradesh in the
National Capital Region, India. Founded in 2016 by Times of India Group. The university has a fully
residential 68-acre campus, near the proposed metro station on the Noida-Greater Noida metro railway
line.
Goal:
Managing an educational system requires careful planning and time management. Today, a university
has evolved into a complex institution with multiple campuses, manifold departments, several sections,
and a very large number of students. For universities moving from a traditional paper-based data
management system to a digital, automated system is a critical need of the hour. A database management
system in its simplest form uses a digital tracking system to maintain a record of all the students and
faculty. However, in practicality, the system has much more complex functions. It maintains a record of
every student-related data ranging from fees and financial records, examination records, transport.
Description: A university registrar’s office maintains data about the following entities: 1. courses,
including number, title, credits, course offerings, including course number, year, semester, section
number, instructor(s), timings, and classroom. Students, including student-id, name, and program. And
instructors, including identification number, name, department, and title. Further, the enrolment of
students in courses and grades awarded to students in each course they are enrolled can be included in
the table.
Assumptions:
Since the university database management system is very large in reality, it is not feasible to develop the
case study to that extent and prepare documentation at that level. Therefore, a small sample case study
has been created to demonstrate the working of the university database system. To implement this sample
case study, some assumptions have been made, which are as follows:
• The number of faculty members are limited. You can also take required assumptions.
1. List_courses: This table consists of details about all the available courses.
2. List_student: This table consists of details about the student. The information stored in this table
includes student name, student id, student year.
CS302 OS 3 3 102
Datatypes Used:
Course_code varchar();
Course_title varchar();
Credits int;
Semester int;
Instructor_id int;
Instructors
Instructor_id Instructor_name Department
103 Ravi ME
107 Mukund EC
Students
Datatype Used:
Questions:
3. Display the courses which are having more than 2 credits sorted in descending
order.
5. List courses by descending order of credits and then ascending order of semesters.
8. Create a view that lists instructors and the number of courses they teach.
9. Create a view that lists students and the number of courses they are registered for.
10. Create a view that shows students registered in semester 3, ordered by age.
11. Create a view that shows the count of instructors in each department, ordered by
department name.