deonta medleyhome.ubalt.edu/ntsbagga/web/300_sp11_web/assignment2/... · web viewinss 300 grade...

15
Deonta Medley April 4, 2011 INSS 300 grade 16/35 see comments Database Assignment (Assignment 2)

Upload: others

Post on 03-Feb-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

Deonta Medley

Deonta Medley

April 4, 2011

INSS 300

grade 16/35

see comments

Database Assignment

(Assignment 2)

Table 1 (Identify PK and FK Relationships)

Table Name

COURSE

TRAINING

Primary Key

Course ID

Trainee ID

Foreign Key

Course_ID

Pk of TRAINING table is a combination of (trinee_ID and course_ID)

there is no FK in COURSE table. FK in TRIAING table is COURSE_ID which is pointing to Pk in COURSE table

grade=-2

I believe that the relationship shared is considered to be one to one. The Course ID from the Course table links to the other table Trainee through the Course_ID.

No..it is 1:m; justification:

a course can be part of many training session and a training session belongs to one course

grade=-3

no PK for TRAINEE table, Created in ACCESS

grade=-2

Part B

q1 need to query only course table

grade=-1

1.

2. need to group and count

grade=- 1

3. not working; use count

grade=-1

4. use grouping

grade=-1

5. incorrect SQl

grade=-1

6. need a count

grade=-1

7. use count

grade=-1

8. no FK, hence incorrect answer; use group by

grade=-1

9. use group by

grade=-1

Q10 no report grade=-4