Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Lab 1

Create the student table using the given fields.

(1) Student Information Table:

Student_id varchar2(20)
Last_name varchar2(25)
First_name varchar2(20)
Dob varchar2(20)
Address varchar2(300)
City varchar2(20)
State varchar2(2)
ZipCode varchar2(9)
Telephone varchar2(10)
Fax varchar2(10)
Email varchar2(100)

(2) Department Information Table:

Department_Id varchar2(20) primarykey


Department_Name varchar2(25)

(3) Instructor's Information Table:

Instructor_id varchar2(20) primarykey


Department_Id varchar2(20) Foreignkey
department(department_id).
Last_Name varchar2(25)
First_Name varchar2(200)
Telephone varchar2(20)
Fax varchar2(20)
Email varchar2(100)

(4) Course Information Table:

Course_Id varchar2(5)
Department_Id varchar2(20) foreignkey department(department_id)
Title char(60)
Description varchar2(200)
Additional_fees number primarykey (course_id, department_id)

1
(5) Schedule Type Header Table:

Schedule_Id varchar2(20)
Schedule_Description varchar2(200)

(6) Schedule Type Details:

Schedule_Id varchar2(20)
Day number
Starting_Time date
Duration number

(7) Class Location Information:

Class_Building varchar2(25)
Class_Room varchar2(25)
Seating_Capacity varchar2(2)

(8) Class Table:

Class_Id varchar2(20) primarykey


Schedule_Id varchar2(20)
Class_Building varchar2(25)
Class_Room varchar2(25)
Course_Id varchar2(5)
Department_Id varchar2(20) foreign key
Dept_info(Department_id)
Instructor_Id varchar2(20) Instructor(Instructor_id)
Semester varchar2(6)
School_Year date

(9) Student Grade Information Table:

Student_Id varchar2(20)
Class_Id varchar2(20)
Grade varchar2(2)Check
Grade in ('A','A+','A-','B','B+','B-',
'C','C+',C-','D','D+','D-','F','F+','F-')
Date_Grade_Assigned date

(10) Describe the structure of the following tables.

1. Student information table


2. Department information table
3. Instructor's Information Table
4. Course Information Table
5. Schedule Type Header Table
6. Schedule Type Details
7. Class Location Information
8. Class table

2
9. Student Grade Information Table.

You might also like