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

DBMS Practical File

MYSQL question bank

Uploaded by

220700
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

DBMS Practical File

MYSQL question bank

Uploaded by

220700
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

JESUS AND MARY COLLEGE

UNIVERSITY OF DELHI
DSC: COMPUTER SCIENCE
DATABASE MANAGEMENT SYSTEM
PAPER CODE: 2342573501
PRACTICAL FILE
TEACHER’S NAME: Ms. AROKIA RAMYA

NAME: Shreya Singh


COLLEGE ROLL NO: 220700
COURSE: CA - MT
UNIVERSITY ENROLLEMENT NO: 22JSMCBAPR000125
EXAMINATION ROLL NO: 22032501179
STUDENT

SOCIETY

ENROLLMENT
Ques 1. Retrieve names of student enrolled in any society

Ques 2. Retrieve all society names.

Que 3. Retrieve student names starting with the letter 'A'


Que 4. Retrieve student details studying in courses 'CS' and 'Chemistry'

Que 5. Retrieve students' names whose Roll No either starts with 'X' or 'Z' and ends with '9
6. Find society details with more than N TotalSeats where N is to be input by the user

7. Update society table for the mentor name of a specific society

8. Find society names in which more than five students have enrolled

9. find the name of the youngest student in the 'Coding club' society
10. Find the name of the most popular society (on the basis of enrolled students)

11. Find the name of two least popular societies (on the basis of enrolled students)
12. Find the students names who are not enrolled in any society.

13. Find the students names enrolled in at least two societies

14. Find society names in which maximum students are enrolled


15. Find names of all students who have enrolled in any society and society names in which at least one student has
enrolled

16. Find names of student who are enrolled in any of the 3 societies 'debating', 'dance', 'sashakt'
17. Find society name such that its mentor has a name with Singh in it

18. Find the society names in which the number of enrolled students is only 10% of its capacity.
19. Display the vacant seats for each society.

20. Increment Total Seats of each society by 10% write for all these questions

21. Add the enrollment fees paid ('yes'/'no') field in the enrollment table

22. Update date of enrollment of SocId S1 to '2018-01-15', S2 to the current date and S3 to '2028-01-02;
23. Create a view to keep track of society names with the total number of students enrolled in it.

24. Find student names enrolled in all the societies.

25. Count the number of societies with more than 3 students enrolled in it

26. Add column mobile number in student table with default value ‘9999999999;

27. Find the total number of students whose age is > 20 years.

28. Find names of students who were born in 2001 and are enrolled in at least one society.
29. Count all societies whose name starts with ‘S’ and ends with ‘T’ and atleast 5 students are enrolled in the
society.

30. Display the following information: Society name, Mentor name, Total Capacity, Total Enrolled, Unfilled Seats

You might also like