0% found this document useful (0 votes)
2 views6 pages

DBMS LAB 4

The document outlines a lab assignment for a Database Systems course, requiring students to create a college database using MySQL. It specifies the creation of a 'Student' table with at least 20 entries and a 'Course' table with a minimum of 5 entries, along with various queries to manipulate and retrieve data. Additionally, it includes tasks such as updating records, assigning primary keys, and listing students based on specific criteria.

Uploaded by

Stu udy
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)
2 views6 pages

DBMS LAB 4

The document outlines a lab assignment for a Database Systems course, requiring students to create a college database using MySQL. It specifies the creation of a 'Student' table with at least 20 entries and a 'Course' table with a minimum of 5 entries, along with various queries to manipulate and retrieve data. Additionally, it includes tasks such as updating records, assigning primary keys, and listing students based on specific criteria.

Uploaded by

Stu udy
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/ 6

CSE Second Year

Semester– 4
Database Systems
Lab 4

NAME: NAYAN MISHRA


PRN: 20220802424

Aim: Create a database of any college and include tables.

Requirements:
1. MySQL [Software]

Theory:
Create a database of any college and include the following tables:
Student
Sr. PRN Name Year of Course Grade Subject Durati Cre Year
No Admiss Name on of dit
ion course
1 XX XX 2020 BCA A AI 3 6 I
2 MBA B Maths 2 4 II
3 CSE F Data 4 6 I
Science
Course
Course-id Name Fee Duration in year

1. Create a student table of minimum of 20 entries according to the below


queries and a course table of minimum of 5 entries.(Note: prepare database
so that at least 3 entries will get for queries, refer above table for references.
Students can update the fields the same )
2. List all those students who opted for the CSE course.
3. List all those students who opted for CSE and MBA courses.
4. List all those courses whose fee is greater than that of the BBA course.
5. List all students who got grades A
6. List all students who got grade A in BCA in 2020
7. Find a list of students who took admissions in the year 2022.
8. List courses of credit 6
9. List courses of credit 6 and 8
10. Drop the Duration of course column from the student database.
11. Update Row 5 with Name – Ram Kumar, course BBA Subject Maths ( fill
other data of your choice)
12. Assign Primary key to right field.
13. List all the entries of the subject AI.
14. List all students whose duration of course is greater than or equal to 3.
15. Fire 5 queries of your choices
a. List all those students with subject eco and math.
b. List all those students who took admission in 2020 in the aesc order of
their name.
c. List all those students whose name start with letter ‘r’.
d. List all those students who are studying in 1st year.
e. List all those students with credit 8 and studying in 3rd year.

You might also like