Docsity

Cartesian Product-Database Management System-Assignment, Exercises of Database Management Systems (DBMS)

Toggle sidebar
bg1
Assignment No. 02
Semester Spring 2012
Database Management Systems-CS403
Total Marks: 10
Due Date: 02/05/2012
Objective:
To learn and understand basic concept of Database and Math Relations
Instructions:
Please read the following instructions carefully before solving & submitting assignment:
Assignment should be in your own wordings not copied from net, handouts or books.
It should be clear that your assignment will not get any credit (zero marks) if:
o The assignment is submitted after due date.
o The submitted assignment does not open or file corrupt.
o The assignment is copied (from other student or copy from handouts or internet).
o The assignment is submitted other than ,doc format.
Assignment:
(a). Find out the Cartesian product (D1 × D2 × D3) of the given pair of sets. Marks: 5
D1 => Set of first two Vowels = D1 = {A, E}
D2 => Set of three country codes = D2 = {213,54, 994}
D3 => Set of first three odd numbers = D3 = {1, 3, 5}
(b). Keeping in view the previous assignment scenario lets suppose there is a simple database for some
entities in CMS might contain relations for Student, Class, Faculty and Enrollment. The relation schema
would be written as:
Student (Stu_Id, LastName, FirstName, Major, Credits)
Faculty (Fac_Id, department, rank, name)
Class (Class_No, Fac_Id, Schedule, room)
Enrollment (Stu_Id, Class_No, Grade)
Using this sample relational schema, identify foreign key in Class relation and Composite primary key in
Enrollment relation. Marks: 5
docsity.com
pf2

Partial preview of the text

Download Cartesian Product-Database Management System-Assignment and more Exercises Database Management Systems (DBMS) in PDF only on Docsity!

Assignment No. 02 Semester Spring 2012 Database Management Systems-CS

Total Marks: 10 Due Date: 02/05/

Objective:

To learn and understand basic concept of Database and Math Relations

Instructions:

Please read the following instructions carefully before solving & submitting assignment:

Assignment should be in your own wordings not copied from net, handouts or books.

It should be clear that your assignment will not get any credit (zero marks) if:

o The assignment is submitted after due date.

o The submitted assignment does not open or file corrupt.

o The assignment is copied (from other student or copy from handouts or internet).

o The assignment is submitted other than ,doc format.

Assignment:

(a). Find out the Cartesian product (D 1 × D 2 × D 3 ) of the given pair of sets. Marks: 5

D 1 => Set of first two Vowels = D 1 = {A, E} D 2 => Set of three country codes = D 2 = {213,54, 994} D 3 => Set of first three odd numbers = D 3 = {1, 3, 5}

(b). Keeping in view the previous assignment scenario lets suppose there is a simple database for some

entities in CMS might contain relations for Student, Class, Faculty and Enrollment. The relation schema

would be written as:

Student (Stu_Id, LastName, FirstName, Major, Credits)

Faculty (Fac_Id, department, rank, name)

Class (Class_No, Fac_Id, Schedule, room)

Enrollment (Stu_Id, Class_No, Grade)

Using this sample relational schema, identify foreign key in Class relation and Composite primary key in

Enrollment relation. Marks: 5

docsity.com

docsity.com