10
Fatima Abdul Kareem INSS300 - Management Information System Database Assignment April 19, 2011 grade 35 + 2 (BONUS) =37/35 PART A: 1. Develop the tables in ACCESS database Systems 2. Identify PK and FK of each table (can do in WORD) Table 1 (identify PK and FK relationships) Table Name COURSE TRAINING Primary Key (PK) Course ID Trainee ID & Course_ID Foreign Key (FK) none Course_ID OK 3. Show the relationship (1:1 or 1:m or m:n) between the following:

grade 35 + 2 (BONUS) =37/35home.ubalt.edu/.../300_sp11_web/assignment2/assignme…  · Web viewgrade 35 + 2 (BONUS) =37/35. P. ART. A: Develop the tables in ACCESS database Systems

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: grade 35 + 2 (BONUS) =37/35home.ubalt.edu/.../300_sp11_web/assignment2/assignme…  · Web viewgrade 35 + 2 (BONUS) =37/35. P. ART. A: Develop the tables in ACCESS database Systems

Fatima Abdul KareemINSS300 - Management Information SystemDatabase AssignmentApril 19, 2011

grade 35 + 2 (BONUS) =37/35

PART A:

1. Develop the tables in ACCESS database Systems

2. Identify PK and FK of each table (can do in WORD)

Table 1 (identify PK and FK relationships)

Table Name COURSE TRAININGPrimary Key (PK) Course ID Trainee ID & Course_ID Foreign Key (FK) none Course_ID

OK

3. Show the relationship (1:1 or 1:m or m:n) between the following:

COURSE and TRAINEE in ACCESS and include a print screen (see under submission PART A, section 3)

Page 2: grade 35 + 2 (BONUS) =37/35home.ubalt.edu/.../300_sp11_web/assignment2/assignme…  · Web viewgrade 35 + 2 (BONUS) =37/35. P. ART. A: Develop the tables in ACCESS database Systems

Fatima Abdul KareemINSS300 - Management Information SystemDatabase AssignmentApril 19, 2011

Justify why it is 1:1 or 1:m or m:n

This is a one-to-many relationship because one record from the Course table can relate to many records in the Trainee table. As a result, the primary table (Course) contains a primary key field that is included as a field (the foreign key) in the secondary table (Trainee).

Ok

Page 3: grade 35 + 2 (BONUS) =37/35home.ubalt.edu/.../300_sp11_web/assignment2/assignme…  · Web viewgrade 35 + 2 (BONUS) =37/35. P. ART. A: Develop the tables in ACCESS database Systems

Fatima Abdul KareemINSS300 - Management Information SystemDatabase AssignmentApril 19, 2011

PART B:

Develop the following queries in ACCESS and run (execute) them

1. List the course ID and its cost, format the output appropriately.

2. Give the trainee name and the number of classes each trainee is taking.

Page 4: grade 35 + 2 (BONUS) =37/35home.ubalt.edu/.../300_sp11_web/assignment2/assignme…  · Web viewgrade 35 + 2 (BONUS) =37/35. P. ART. A: Develop the tables in ACCESS database Systems

Fatima Abdul KareemINSS300 - Management Information SystemDatabase AssignmentApril 19, 2011

3. How many trainees are taking classes on November 6th? (Give a count)

4. Give the training sessions and their dates (make sure there is no repetition of session and corresponding date).

Page 5: grade 35 + 2 (BONUS) =37/35home.ubalt.edu/.../300_sp11_web/assignment2/assignme…  · Web viewgrade 35 + 2 (BONUS) =37/35. P. ART. A: Develop the tables in ACCESS database Systems

Fatima Abdul KareemINSS300 - Management Information SystemDatabase AssignmentApril 19, 2011

5. How many students are registered per training section?

6. How many courses are there?

7. How many classes John Watt is taking?

Page 6: grade 35 + 2 (BONUS) =37/35home.ubalt.edu/.../300_sp11_web/assignment2/assignme…  · Web viewgrade 35 + 2 (BONUS) =37/35. P. ART. A: Develop the tables in ACCESS database Systems

Fatima Abdul KareemINSS300 - Management Information SystemDatabase AssignmentApril 19, 2011

8. Give the total amount paid by Willy Polk

9. Give the names of instructors teaching on November 6th

Page 7: grade 35 + 2 (BONUS) =37/35home.ubalt.edu/.../300_sp11_web/assignment2/assignme…  · Web viewgrade 35 + 2 (BONUS) =37/35. P. ART. A: Develop the tables in ACCESS database Systems

Fatima Abdul KareemINSS300 - Management Information SystemDatabase AssignmentApril 19, 2011

10. Create an Enrollment report of Dates and Overall total number of students taking classes on those dates, i.e., 10/02/2009; 10/03/2009. see the template below:

Page 8: grade 35 + 2 (BONUS) =37/35home.ubalt.edu/.../300_sp11_web/assignment2/assignme…  · Web viewgrade 35 + 2 (BONUS) =37/35. P. ART. A: Develop the tables in ACCESS database Systems

Fatima Abdul KareemINSS300 - Management Information SystemDatabase AssignmentApril 19, 2011

Enrollment Report for TrainingrUs.com

Date Number of students taking classes

10/02/2009

10/3/2009

etc..

Overall Total Number of Students:

Page 9: grade 35 + 2 (BONUS) =37/35home.ubalt.edu/.../300_sp11_web/assignment2/assignme…  · Web viewgrade 35 + 2 (BONUS) =37/35. P. ART. A: Develop the tables in ACCESS database Systems

Fatima Abdul KareemINSS300 - Management Information SystemDatabase AssignmentApril 19, 2011

BONUS:(2 points)

Create a REVENUE report to provide date, session IDs, number of students and total revenue for TrainingrUs.com. Format the output appropriately. Design as you see fit.