Docsity

COMPSCI 410/510 Databases Homework 2, Assignments of Computer Science

Toggle sidebar
bg1
COMPSCI 410/510 Databases (Spring 09)
Homework 2, 60/75 points, Due on 2/18/09 (Wednesday)
5 extra credit if you type your homework solution
•(10 points) Exercise 5.11 on page 166. You only need to specify the constraint violations
for each operation. You can ignore the ways of enforcing the constraints.
•(10 points) Exercise 5.14 on page 167. Please specify foreign keys as in Figure 5.7.
•Exercise 6.16 on page 214.
–(30 points) For students of COMPSCI 510: do all queries from ato j.
–(15 points) For students of COMPSCI 410: only do queries a, c, e, g, i. How-
ever, you are welcomed to submit solutions of other queries.
•(10 points) Exercise 6.22 on page 217.
•(15 points) Map the ER Schema diagram for the University database from Exercise
3.16 to a relational schema diagram. Please use the attached ER diagram. Identify all
the primary and foreign keys, and specify the referential integrity constraints among
them using the arrows as in Figure 5.7.
1
pf2

Partial preview of the text

Download COMPSCI 410/510 Databases Homework 2 and more Assignments Computer Science in PDF only on Docsity!

COMPSCI 410/510 Databases (Spring 09)

Homework 2, 60/75 points, Due on 2/18/09 (Wednesday)

5 extra credit if you type your homework solution

• (10 points) Exercise 5.11 on page 166. You only need to specify the constraint violations

for each operation. You can ignore the ways of enforcing the constraints.

• (10 points) Exercise 5.14 on page 167. Please specify foreign keys as in Figure 5.7.

• Exercise 6.16 on page 214.

– (30 points) For students of COMPSCI 510: do all queries from a to j.

– (15 points) For students of COMPSCI 410: only do queries a, c, e, g, i. How-

ever, you are welcomed to submit solutions of other queries.

• (10 points) Exercise 6.22 on page 217.

• (15 points) Map the ER Schema diagram for the University database from Exercise

3.16 to a relational schema diagram. Please use the attached ER diagram. Identify all

the primary and foreign keys, and specify the referential integrity constraints among

them using the arrows as in Figure 5.7.

Name

STUDENT

LName

FName

Current

Phone

Address

Permanent

Phone

Address

Sex

SSN

class

BirthDate

Degree

StudentNumber

GRADE_REPORT

DEPARTMENT

RECEIVE

SECTION

IS_GRADE_OF

COURSE

BELONG_TO

College

OfficePhone

OfficeNo

DeptCode

Name

City

State

Zip

OFFER

LGrade

NGrade

MAJOR

MINOR

(0, N)

(0, N)

(1, N)

(1, N)

(1, N)

(0, N)

(0, N)

(1, N)

CourseNo

Hours

Name

Description

Level

Instructor

SSY

Year

Semester

SectionNo