Merged Dbms Final)
Merged Dbms Final)
ASSIGNMENT - 6
1. Display name, phone number of students with ‘a’ as the second letter in their names who read
subject CS301.
2. Display the marks for all available subjects for the students who born in JUNE.
3. Show the student details of 5th semester Computer science and engineering Department.
4. Show the subject details of 3rd semester Computer science and engineering Department.
5. Display the department name for which some student get more than 90.
2
6. Display the student name who reads in 5th semester and get more than 80 in any subject.
3
7. Display the name of CSE student who born in 2000 and get more than 80 in CS301.
8. Display the department details with less than 80 students which has subject name Data
Communication.
9. Display subject name, subject code of the department with allotted student less than 100.
10. Show Roll number, subject code and marks for CSE 3rd year students where subject name starts
with D.
11. Display roll number, subject and marks of students who took admission in the year 2017 and
read subject CS505.
12. Find the student details of CSE students whose marks are not available in result.
4
13. Find the subject name, subject code which is not included in result.
5
Assignment – 7
2. Display student names, subject code and marks of students who took admission in the year 2017
and read subject CS502.
3. Find the name of the students who got marks between 70 to 89 in CS501.
4. Find the student name, roll no who appeared in the examination for paper DBMS.
6
7
5. Show student names, subject code and marks for CSE 3rd year students.
6. Show student names, department name for 5 th semester students who born in MAY.
7. Show student names, subject name for 5th semester student where subject name contains the
word ‘DATA’
8. Show student names, subject name and marks for 5th semester students.
8
9. Find the roll number, student names and marks for CSE students who get more than 80 in Data
Structure.
9
10. Show student names, department name, subject name and subject wise marks for which the
student get more than 90.
12. Add column TEACHER in table SUBJECT. Insert faculty id in this column.
13. Show the department name, semester, subject name along with faculty name.
14. Find the names of all faculties whose HOD name is given.
10
15. Display subject name, subject code, marks including all subjects. [Outer join]
11
16. Display students name, subject code, marks. Include all students. [Outer join]
12
Assignment – 8
4. Find the 5th semester student(s) who got maximum marks in a subject.
5. Find the roll number of a student who got maximum marks in CS501.
7. Find the number of students in each department with their department code.
8. Find the number of students in each department with their department name.
10. Find the student name and roll no who get more than 80 in at least two subject.
11. Find the student name and roll no who get more than 70 in average.
15. Find the students name who got highest marks, subjectwise.
17
ASSIGNMENT – 9
1. Create view V_MARKS with roll no, student name, subject code, marks of all
CSE students.
2. Create view V_CLASSTAKEN with subject code, subject name, Faculty code,
faculty name where the subject is taught by that faculty.
18
4. Create view V_STUDENT with student name, roll number, department who
appeared in at least one examination.
19
5. Create view V_DEPT with dept code, semester, number of student with more
than 75 marks in at least one subject.