|
Table 1: Student Situation Information Form XS
Student ID Name Professional Name Gender Birth Time Total Credits Remarks
Primary key
Table 2: Course schedule KC
Course number Course name Start semester Hours Credits
Primary key
Table III: Students and curriculum XS_KC
Student No. Course No. Grade Credits
Primary key primary key
The first two tables, I will, how to build the third table, thank you
create table kc (
Course number char (3) not null primary key,
Course name char (16) not null,
Start semester tinyint not null check ((start semester> = 1) and (start semester <= 8)),
Hours tinyint not null,
Credits tinyint null
)
go
create table xs (
Student number char (6) not null primary key,
Name char (8) not null,
Professional name char (10) null,
Gender bit not null default '1',
Time of birth smalldatetime not null,
Total credits tinyint null,
Note text null,
constraint chk_sex check (sex in ('1', '0'))
)
go
I ca n’t think of the third table, please help, thank you
I also found the book |
|