RDBMS Assignment
RDBMS Assignment
RDBMS Assignment
Task / Problems:
Level I:
1. The company is organized into departments. Each department has a unique name,
a unique number and a particular employee who manages the department. A
department may have several locations.
2. A department controls a number of projects, each of which has a unique name, a
unique number and a single location.
3. We store each employees name, social security number, address, salary, sex and
birth date and age. An employee is assigned to one department but may work on
several projects, which are not necessarily controlled by the same department. We
keep track of the number of hours per week that an employee works on each
project. We also keep track of the direct supervisor for each employee.
4. We want to keep track of the dependents of each employee for insurance
purposes. We keep each dependents first name, sex, birthdate and relationship to
the employee.
2) Consider the following set of requirements for a university database that is used
to keep track of students transcripts.
1. The university keeps track of each students name, student number, social security
number, current address and phone, permanent address and phone number,
birthdate, sex, class(freshman, sophomore, graduate), major department, minor
department ( if any), and degree program ( B.A., B.S., Ph.D.). Some user
applications need to refer to the city, state, and zip code of the students
permanent address and to the students last name. Both student number and social
security number have unique values for each student.
2. Each department is described by a name, department code office number, office
phone, and college. Both name and code have unique values for each department.
3. Each course has a course name, description, course number, number of semester
hours, level, and offering department. The value of course number is unique for
each course.
4. A grade report has a student, course, and numeric grade (0, 1, 2, 3 or 4)
Level II:
3) Design a database for keeping track of information of voters for the Lok
Sabha Election.
The database needs to keep track of each Indian states name, number of
constituencies in the state, name of each constituency, geographical area of the
constituency, total number of voters in the constituency.
Each constituency has a number of voters, where each voter should have the
details voter id, name, address, gender, date of birth, age.
Again each political party has candidates for each of the constituency. Any political
party has a name, symbol and a president while a candidate has name, address,
qualification, gender and caste
4) The University Housing Office receives many applications from graduate and
married students requesting an apartment on campus. The housing villages are
sited in five different locations and each village has about 500 apartments. Each
apartment falls into one of the apartment categories. An apartment category is
determined based on: village location, whether the apartment has: dish washer or
not, a single or double bedroom, central or window unit air conditioner, furniture
or not.
Housing office keeps the following information about the current residents: the
SSN of the family head, name, address, telephone number, marital status, the
name of the major college and department in which the family head is enrolled in.
Housing office keeps the following information about the students that have
applied for in campus housing, but have not been assigned to an apartment yet:
SSN of the applicant, name, address, telephone number, marital status, the name
of the major college and department in which the family head is enrolled in, the
preference about the apartment category.
Draw an E-R diagram for the University Housing Office database. State any
assumptions you need to make in order to develop a compete diagram.
Concept: E-R to relational Mapping Normalization
Task / Problems:
Level I:
P# Pname
Class#
Age
M M
Pilot flies Aircraft
Salary
Pilot#
Social
security
Date Account
City Number
Balance
Name
Loan_typ
Loan_Id
Cust_Id Cust_Nam
M
1 LOAN
CUSTOME Borro
R
1 Amount
Address
Has
Relation
M
4. Dep_No
DEPENDE Dep_Name
NT
M
1
PAINTER paints PAINTING
M
PaintingTheme
Address Contact_No
displayed
Gallery_No Gallery_address
1
Gallery_Name GALLERY
Normalization:
Level I:
6 East street
Avinash
Camp; Pune 1-Jul-00 31-Aug-01 350 CO40
PG4 Bhosale
Jay
CR76
Mehta 46,Senapati
PG16 Sandesh
Bapat Rd, 1-Sep-02 1-Sep-02 450 CO93
Shinde
Pune
6 East street
Camp; Pune 1-Sep-99 Avinash
PG4 10-Jun-00 350 CO40
Bhosale
61,
BhelkeNagar, 10-Oct-00 Sandesh
CR56 Bipasha PG36 1-Dec-01 370 CO93
Kothrud;Pune Shinde
46,Senapati Sandesh
PG16 1-Aug-03 450 CO93
Bapat Rd, 1-Nov-02 Shinde
Pune