Практическая работа по Базам Данных

Слайд 2

go create table Student( id_s int not null primary key ,F

go
create table Student(
id_s int not null primary key
,F varchar(20)

not null
,I varchar(20) not null
,O varchar(20)
,id_md int not null references Med_dok
)
Слайд 3

insert into Med_dok (id_md,rost,ves,pasport,snils) values

insert into Med_dok (id_md,rost,ves,pasport,snils) values

Слайд 4

go create table Gruppa ( id_s int not null references Student ,Specialinoct varchar(50) not null )

go
create table Gruppa (
id_s int not null references Student


,Specialinoct varchar(50) not null
)
Слайд 5

go create table Predmet( id_pr int not null primary key ,name_pred

go
create table Predmet(
id_pr int not null primary key
,name_pred

varchar(150)
,f varchar(20) not null
,i varchar(20) not null
,o varchar(20)
)
Слайд 6

go create table Poseckaemosti( id_pos int not null ,datg date not

go
create table Poseckaemosti(
id_pos int not null
,datg date not

null
,id_s int not null references Student
,id_pr int not null references Predmet
,otmetka int not null
)