DBMS - Assignment/Question/course - Stu - Regis - Assign
DBMS - Assignment/Question/course - Stu - Regis - Assign
Table Structure:REGISTRATION
COURSE:
CourseId CourseName Duration Fees
STUDENT:
StudId FirstName LastName Street City DOB
3001 Dileep Kumar Jai Nagar Bangalore March 10, 1989
3002 Anand Kumar Indiranagar Bangalore January 19, 1988
3003 Bala Krishnan Annanagar Chennai January 3, 1990
3004 Gowri Shankar Gandhipuram Coimbatore December 22, 1987
3005 Priya Menon JPNagar Cochin February 12, 1990
3006 Prem Kumar Ramnagar Coimbatore May 17, 1987
3007 Rahul Dravid KKNagar Chennai October 8, 1987
3008 John David Mylapore Chennai September 15, 1990
3009 Abdul Rahman HAL Bangalore January 19, 1988
Page 1
Sheet1
REGISTRATION:
CourseId StudId DOJ
1001 3004 March 10, 2011
1001 3005 March 10, 2011
1002 3002 April 18, 2011
1002 3003 April 18, 2011
1002 3008 April 18, 2011
1003 3001 June 6, 2011
1003 3004 June 6, 2011
1003 3006 June 6, 2011
1004 3005 March 10, 2011
1004 3007 March 10, 2011
1004 3008 March 10, 2011
1005 3004 May 25, 2011
1005 3005 May 25, 2011
Page 2
Sheet1
SUBQUERIES AND JOINS:
1 Display the course details whose fees is lesser than the maximum fees
2 Display the students who are elder than 'Balakrishnan'
3 Calculate the total fees collected from the student who are coming from city bangalore
4 Display the student firstname and the coursename for each student
5 Find the courses which has same duration
6 Display the completing date of each course using DOJ and duration
7 Display the second maximum fees
8 Display the studentid and the total fees paid by each student
9 Display the courseid, coursename and total fees collected from each course.
Page 3
Sheet1
Page 4
Sheet1
om student table.
Page 5
Sheet1
Page 6