Database Assignment - CS403 (Spring 2012), Exercises of Software Engineering

An assignment for database management systems (cs403) in the spring 2012 semester. The assignment includes two parts: (a) finding the cartesian product of given sets and (b) identifying foreign keys and composite primary keys in a sample relational schema. The assignment is worth 10 marks and is due on 02/05/2012.

Typology: Exercises

2011/2012

Uploaded on 08/01/2012

parmitaaaaa
parmitaaaaa 🇮🇳

4.2

(111)

173 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Assignment No. 02
Semester Spring 2012
Database Management Systems-CS403
Total Marks: 10
Due Date: 02/05/2012
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 Database Assignment - CS403 (Spring 2012) and more Exercises Software Engineering in PDF only on Docsity!

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

Total Marks: 10 Due Date: 02/05/

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