0% found this document useful (0 votes)
15 views11 pages

Questions

The document outlines the practical examination details for the B.Tech Database Management Lab at APJ Abdul Kalam Technological University, including various tasks related to music, university, employee, and student databases. Each section requires students to draw ER diagrams, convert them into relational schemas, create tables, insert values, and perform specific queries or procedures. The document specifies the course code, name, maximum marks, and duration for the examination.

Uploaded by

Shabie Shabeer
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)
15 views11 pages

Questions

The document outlines the practical examination details for the B.Tech Database Management Lab at APJ Abdul Kalam Technological University, including various tasks related to music, university, employee, and student databases. Each section requires students to draw ER diagrams, convert them into relational schemas, create tables, insert values, and perform specific queries or procedures. The document specifies the course code, name, maximum marks, and duration for the examination.

Uploaded by

Shabie Shabeer
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/ 11

APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY

Fifth Semester B.Tech Degree Practical Examinations November 2024

Course Code: CSL 333


Course Name: Database Management Systems Lab

Max.Marks: 100 Duration: 3 Hrs

Music Database

1. The collection consists of albums.


2. An album is made by exactly one artist. Album contains album_id, album_name.
3. An artist makes one or more albums. Artists have an id, name.
4. An album contains one or more tracks
5. Artists, albums, and tracks each have a name.
6. Each track is on exactly one album.
7. Each track has a time length, measured in seconds.

Draw ER diagram and convert it into relational schema.

1. Create tables and insert values


2. Retrieve the count of albums for each artist
3. Create a view named “collection_of_Albums” which includes artist name, album name
and track_id to show the number of tracks in an album.
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fifth Semester B.Tech Degree Practical Examinations November 2024

Course Code: CSL 333


Course Name: Database Management Lab

Max.Marks: 100 Duration: 3 Hrs

Music Database

1. The collection consists of albums.


2. An album is made by exactly one artist. Album contains album_id,
album_name,artist_name, track_id.
3. An artist makes one or more albums. Artists have an id, name, album_name.
4. An album contains one or more tracks
5. Artists, albums, and tracks each have a name.
6. Each track is on exactly one album.
7. Each track has a time length, measured in seconds.

Draw ER diagram and convert it into relational schema.

1. Create tables and insert values


2. Retrieve the name of albums and track_id of albums which have multiple tracks
3. Create a procedure to retrieve the count of tracks for each albums from the table Tracks
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fifth Semester B.Tech Degree Practical Examinations November 2024

Course Code: CSL 333


Course Name: Database Management Lab

Max.Marks: 100 Duration: 3 Hrs

University Database

● The university offers one or more programs.

● A program is made up of one or more courses.

● A student must enroll in a program.

● A student takes the courses that are part of her program.

● A program has a name, a program identifier, the total credit points required to graduate,
and the year it commenced.

● A course has a name, a course identifier, a credit point value, and the year it commenced.

● Students have one or more given names, a surname, a student identifier, a date of birth,
and the year they first enrolled.

Draw ER diagram and convert it into relational schema.

1. Create tables and insert values


2. Retrieve the count of the students enrolled in each program
3. Create a procedure to find the count of courses registered by each student from the
relation between student and course
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fifth Semester B.Tech Degree Practical Examinations November 2024

Course Code: CSL 333


Course Name: Database Management Lab

Max.Marks: 100 Duration: 3 Hrs

University Database

● The university offers one or more programs.

● A program is made up of one or more courses.

● A student must enroll in a program.

● A student takes the courses that are part of her program.

● A program has a name, a program identifier, the total credit points required to graduate,
and the year it commenced.

● A course has a name, a course identifier, a credit point value, and the year it commenced.

● Students have one or more given names, a surname, a student identifier, a date of birth,
and the year they first enrolled.

Draw ER diagram and convert it into relational schema.

1. Create tables and insert values


2. Create a view named student course list which contain the student name and
corresponding course taken by the student
3. Retrieve the number of courses in each program
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fifth Semester B.Tech Degree Practical Examinations November 2024

Course Code: CSL 333


Course Name: Database Management Lab

Max.Marks: 100 Duration: 3 Hrs

University Database

● The university offers one or more programs.

● A program is made up of one or more courses.

● A student must enroll in a program.

● A student takes the courses that are part of her program.

● A program has a name, a program identifier, the total credit points required to graduate,
and the year it commenced.

● A course has a name, a course identifier, a credit point value, and the year it commenced.

● Students have one or more given names, a surname, a student identifier, a date of birth,
and the year they first enrolled.

Draw ER diagram and convert it into relational schema.

1. Create tables and insert values


2. Export the data of student table into student.csv file
3. Retrieve the number of students who earns the average credit point value
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fifth Semester B.Tech Degree Practical Examinations November 2024

Course Code: CSL 333


Course Name: Database Management Lab

Max.Marks: 100 Duration: 3 Hrs

Employee Database

● Each department may have several Locations.


● Departments are identified by a name, d_no, Location.
● Each department is associated with a number of projects.
● Employees are identified by name, id, address, job, date_of_joining.
● An employee works in only one department but can work on several projects.

Draw ER diagram and convert it into relational schema.

1. Create tables and insert values


2. Retrieve the name of department which have more than one location
3. Retrieve the name of each project along with their department
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fifth Semester B.Tech Degree Practical Examinations November 2024

Course Code: CSL 333


Course Name: Database Management Lab

Max.Marks: 100 Duration: 3 Hrs

Employee Database

● Each department may have several Locations.


● Departments are identified by a name, d_no, Location.
● Each department is associated with a number of projects.
● Employees are identified by name, id, address, job, date_of_joining.
● An employee works in only one department but can work on several projects.
● Project has project id, name, corresponding department_id,employee_id

Draw ER diagram and convert it into relational schema.

1. Create tables and insert values


2. Retrieve the number of all projects to a particular department
3. Create a view to list all departments with their projects with heading department_name
and Project_id and name
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fifth Semester B.Tech Degree Practical Examinations November 2024

Course Code: CSL 333


Course Name: Database Management Lab

Max.Marks: 100 Duration: 3 Hrs

Employee Database
● Each department may have several Locations.
● Departments are identified by a name, d_no, Location.
● Each department is associated with a number of projects.
● Employees are identified by name, id, address, job, date_of_joining.
● An employee works in only one department but can work on several projects.
● Project has project id, name, corresponding department_id, employee_id

Draw ER diagram and convert it into relational schema.

1. Create tables and insert values


2. Retrieve the number of employees working on each department
3. Create a view which contains the project_name and count of employees worked on that
corresponding project.
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fifth Semester B.Tech Degree Practical Examinations November 2024

Course Code: CSL 333


Course Name: Database Management Lab

Max.Marks: 100 Duration: 3 Hrs

Student database
1. A student must enroll in multiple courses
2. Courses teached by a instructor
3. Each course studied by every student
4. A course has a course_summary_identifier, instructor_name,
marks_physics,marks_chemistry, marks_maths
5. Students have one or more given names, a surname, a student identifier,
6. Instructor has id, name, name of course taken

Draw ER diagram and convert it into relational schema.

1. Create tables and insert values


2. Create a procedure to find total mark of each subject(take total separately in each subject)
3. Create a procedure to find average mark of each subject(take average separately in each
subject)
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fifth Semester B.Tech Degree Practical Examinations November 2024

Course Code: CSL 333


Course Name: Database Management Lab

Max.Marks: 100 Duration: 3 Hrs

Student database
1. A student must enroll in multiple courses
2. Courses teached by a instructor
3. Each course studied by every student
4. A course has a course_summary_identifier, instructor_name,
marks_physics,marks_chemistry, marks_maths
5. Students have one or more given names, a surname, a student identifier,
6. Instructor has id, name, name of course taken

Draw ER diagram and convert it into relational schema.

1. Create tables and insert values


2. Create a view named student_marks which contain id, instructor name,average marks of
each student in 3 courses from the table course
3. Perform TCL commands(AUTO COMMIT,SAVEPOINT,ROLLBACK, COMMIT) in
the view student_marks

You might also like