You are on page 1of 1

Assignment #4

Microsoft Access: Define a database called Student Teacher consisting of two


tables: Students and Faculty.
The Student table has the following fields with the following properties:

 Student ID: - data type is Text, field size is 4 and Caption is ID #. It is also
the primary key.
 Last Name: is Text, field size is 15
 First Name: is Text, field size is 15
 Program Name: is Text, field size is 30
 City: is Text, field size is 15
 Faculty ID: is Text, field size is 4

The Faculty table has the following fields with the following properties:

 Faculty ID: - is Text, the field size is 4, the Caption is Fac. ID and it is the
primary key.
 Last Name: - is Text and the field size is 15
 First Name: is Text, field size is 15
 Office Phone: is Text, field size is 4 and the Caption is Phone
 City: is Text, field size is 15
 Consulting Hour: is Text field size of 15

Student Table
Student ID First Name Last Name Program Name City Faculty ID
L1f200Bscs455 Ali Khan BSCS Lahore F101
L1s200Bscs005 Muhammad Danish SE Gujranwala F201
L1s200Bscs205 Saad ahmad BSCS Lahore F513
L1s200Bscs189 Amina saeed BSCS Kasur F201

Faculty Table
Faculty ID First Name Last Name Office Phone City Consulting Hour
F101 Muhammad Bilal 042-5239009 Lahore 11:00-12:00
1201 Mohsin Khan 042-5238003 Gujranwala 02:00-4:00
F513 Sara ahmad 042-5239009 Lahore 12:30-2:30
F256 Fatima saeed 042-5239009 Kasur 9:00-11:00

Create two queries


1. Student. One that lists every students' First Name, Last Name.
2. Name of Student and faculty belong to same city

You might also like