0% found this document useful (0 votes)
31 views

IMS-CSET-201 Lab Assignment 5.2

lab 5.2 IMs

Uploaded by

Yash Nautiyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

IMS-CSET-201 Lab Assignment 5.2

lab 5.2 IMs

Uploaded by

Yash Nautiyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

School of Computer Science Engineering and Technology

Course- BTech Type- Core


Course Code- CSET201 Course Name- Information Management System (Lab)
Year- 2024 Semester- Odd
Date- 25/08/2024 Batch- 2023-2027

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 courses has been restricted to 5-8.

• The number of students has been restricted to 8-10.

• The number of faculty members are limited. You can also take required assumptions.

Tables will be created are as follows:

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.

Constraints: The student id should be unique.

3. Instructor_details: This table consists of details about the instructor_details. Constraints:

Instructor_id should be unique.


Courses
Course_code Course_title Credits Semester Instructor_id

CS301 DBMS 4 3 101

CS302 OS 3 3 102

CS101 Physics 3 1 103

CS303 java 3 3 104

CS505 Discrete Math 4 5 105

CS701 Cloud Computing 3 7 106

EC303 DLD 2 5 107

MBA501 Economics 3 5 108

Datatypes Used:

Course_code varchar();
Course_title varchar();
Credits int;
Semester int;
Instructor_id int;

Instructors
Instructor_id Instructor_name Department

101 Ashish CSE

102 Shivam CSE

103 Ravi ME

104 Sujit CSE

105 Alka CSE

106 Suman CSE

107 Mukund EC

108 Rohit MBA

Datatypes Used : Instructor_id int; Instructor_name


varchar();
Department varchar();

Students

Registration_id S_Name Semester Course_code Age Instructor_id

SCS012 Arjun 3 CS301 17 101

SCS013 Anamika 3 CS301 19 101

SCS012 Divya 3 CS302 20 102

SCS014 Diya 1 CS101 19 103

SCS015 Abhishek 3 CS303 17 104

SCS090 Shiva 3 CS303 16 104

SCS071 Rahul 5 CS505 21 105

SCS043 Rupam 3 EC303 22 107

SCS017 Hina 3 EC303 23 107

SCS022 Alam 5 MBA501 21 108

SCS056 Satya 7 CS701 23 106

Datatype Used:

Registration_id Varchar(); S_name


Varchar();
Semester int; Course_code
Varchar(); Age int; Instructor_id
int;
School of Computer Science Engineering and Technology

Questions:

1. Display the details of students sorted by age in ascending order.

2. Display the number of students in each semester.

3. Display the courses which are having more than 2 credits sorted in descending
order.

4. Display courses offered in semesters 3 and 5 ordered by course code.

5. List courses by descending order of credits and then ascending order of semesters.

6. Find the maximum credits among courses for each instructor.

7. Display the number of courses offered by each instructor in semester 3.

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.

You might also like