Anda di halaman 1dari 2

Create Faculty table

Go back to University:Database window


Choose "Create table in Design view"
Create table with the following fields
FIELD NAME
FAC ID
LAST NAME
FIRST NAME
DEPT
BDATE
RANK
HIRE DATE

DATA TYPE
TEXT (PRIMARY KEY)
TEXT
TEXT
TEXT
DATE
TEXT
DATE

Save the table as "FACULTY"


Create Faculty-Department relationship
On the Tools menu, choose Relationships...
Highlight dept and click "Add"
Highlight faculty and click "Add"
Icons for each table appear on the screen
Click and drag from "DEPT ID" in dept table to "DEPT" in faculty table.
In the dialog box, click on Create
Save the relationship by clicking on the save icon
Add data to faculty table
Insert the following data into the faculty table -- notice that each faculty entry
has a dept that corresponds to an existing dept entry
FAC ID

LAST NAME

FIRST NAME

DEPT BDATE

RANK

HIRE DATE

00303

SMITH

JOE

CSC

09/23/1965

ASST

01/23/1998

00322

JONES

ALICE

MTH

03/11/1972

ASST

12/23/2001

00223

FRIDAY

JENNIFER

ENG

12/12/1970

ASSOC

08/02/1994

00332

LANE

LANCE

CSC

06/02/1959

FULL

01/01/1995

00433

JUNIPER

LUCY

MTH

03/21/1965

ASSOC

03/03/1998

Have one of the lab instructors (professor or TA) initial your paper here when you
have completed this part of the lab:
___________________________

Source: http://homepage.cs.uri.edu/courses/fall2005/csc110s1/labs/lab12.html