0% found this document useful (0 votes)
11 views

Tables

The document contains the structure of multiple tables in a student database including tables for students, schedules, instructors, subjects, classes, and relationship tables to link the tables together. The tables store information like student IDs and names, class numbers and locations, instructor IDs and contact details, subject codes and names, and schedule details like years, days, and times. Primary keys are specified to uniquely identify each record in the tables and foreign keys define relationships between tables.

Uploaded by

Maha Mamdouh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Tables

The document contains the structure of multiple tables in a student database including tables for students, schedules, instructors, subjects, classes, and relationship tables to link the tables together. The tables store information like student IDs and names, class numbers and locations, instructor IDs and contact details, subject codes and names, and schedule details like years, days, and times. Primary keys are specified to uniquely identify each record in the tables and foreign keys define relationships between tables.

Uploaded by

Maha Mamdouh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Tables

Student
Name of element Primary Foreign Data type requirement max label format
key key
ST.ID T F Integer yes 6 ID NNNNNN
ST.name F F Varchar yes 225 Name
St.address F F varchar yes 50 Address
St.gender F F Char yes 1 Gender M/F
St.dob F F Data/time yes 10 Date of dd/mm/yyyy
birth
St.email F F Varchar yes 30 email @gmail.com
Phone number F F integer yes 11 Parent
phone
number

Schedule
Name of element Primary key Foreign key Data type requirement max label format
ST.ID F T integer Yes 6 ID NNNNNN
Schedules year T F number No 4 schedule
Day F F Date No 9 Day dddd

Time F F Time No 6 Time hh/mm/ss

Instructor Schedule
Name of element Primary key Foreign key Data type requirement max label format

Schedules years F T number No 4 Schedule

Instructor.ID F T integer Yes 4 ID NNNNNN


Instructor
Name of Primary key Foreign key Data type requirement max label format
element

Instructor.ID T F Integer yes 6 ID NNNNNN


I.name F F Varchar yes 225 Name

I.phone F F integer yes 11 Phone

I.address F F varchar yes 50 Address

I.gender F F char yes 1 Gender M/F


I.email F F Varchar2 yes 30 Email

Subject.Schedule
Name of element Primary key Foreign key Data type requirement max label format

Subject.code F T Integer No 7 code

Schedules years F T number No 4 Schedule

Subject
Name of element Primary key Foreign key Data type requirement max label format

Subject.Code T F Integer No 5 code

Subject.name F F Varchar No 15 Name


Class
Name of Primary key Foreign key Data type requirement max label format
element
Class.Num T F Integer No 12 Num

Class.Locatio F F Varchar No 7 Location


n

Class.Schedule
Name of Primary key Foreign key Data type requirement max label format
element
Class.Num F T Integer No 12 Number

Schedules F T number No 4 Schedule


Years

You might also like