Beruflich Dokumente
Kultur Dokumente
Answer all the questions. You may use examples illustrations or diagrams to support
your answer. You have to implement the database system using any RDBMS.
A Central University runs from its main campus and a number of associated colleges. The
University has several programmes ranging from Diploma (1 year duration), Bachelor’s
degree (3 or 4 year’s duration), Post Graduation (2 to 3 years duration) and research degree
programmes (2-3 years duration). The structure of each programme is approved centrally. A Page | 2
programme may be offered through the main campus or associated college. The students are
registered centrally in a programme and college of his/her choice. The fee is also paid
centrally yearly. The final data of admission can be obtained by the colleges through a query
to the central database. The University has a centralized examination system. It conducts the
examination of the students in various courses of various programmes. For simplicity you
may assume that a programme of the University only have three compulsory courses in a
year. Perform the following tasks for the University. Please make and state assumptions, if
any.
Question 1: (10 Marks)
List the entities, their attributes and relationships for the description and make an ER-diagram
for the University. You may use the concept of keys, aggregation, generalisation, cardinality
etc. in a proper way.
addres phone
name
email
College
admit
rollno
roll
name
phone
course
program
program
Program
eligibility
submit
id
Examination
name college
duration
Fees Examination
www.bronzeacademy.com
info@bronzeacademy.com
CS‐67
College table
Name Data type Size Constraints Description Page | 3
Name Varchar 20 Primary Key
Address Varchar 200
Phone Number 10,0
Email Varchar 40
Registration
Name Data type Size Constraints Description
Rollno Number 13 Primary Key
Name Varchar 30
Phone Number 10,0
Address Varchar 200
Admission
Name Data type Size Constraints Description
Rollno Number 13 Foreign Key
College Varchar 30 Foreign Key
Session Varchar 20
Program Varchar 20 Foreign Key
Program
Name Data type Size Constraints Description
Id Varchar 20 Primary Key
Name Varchar 30
Duration Number 10
College Varchar 20 Foreign Key
Eligibility Varchar 20
Fees
Name Data type Size Constraints Description
Rollno Number 13 Foreign Key
Log Varchar 30
Amt Number 10,2 Amount
Examination
Name Data type Size Constraints Description
Rollno Number 13 Foreign Key
Dates DateTime
Times DateTime
Program Varchar 20 Foreign Key
www.bronzeacademy.com
info@bronzeacademy.com
CS‐67
Page | 4
www.bronzeacademy.com
info@bronzeacademy.com
CS‐67
c) Find the student who have either failed the subject Database Management System at least
once or has not given the examination for this subject. You may assume that this subject
is taught in BCA 2nd Year and MCA 1st year.
d) Find the student who has topped in BCA 2nd Year examination.
e) Find the number of programmes run in each college.
Page | 5
Question 8: (20 Marks)
Design two views for the database that you have designed and implemented. One view
should be for the University Vice Chancellor who is interested in knowing about the
performance of students in various programme and colleges. The other view is for a student
who can view only his/her information. Identify on what tables and what fields these two will
be allowed to have access. Implement these views or write equivalent queries for the view
defining expression using SQL.
www.bronzeacademy.com
info@bronzeacademy.com