create table sc
(
scNO char(5),
SNO char(5),
CNO char(5),
MARK numeric(4,2)
)
alter table sc alter column scNO char(5) not null
alter table sc add constraint PK_sc primary key(scNO)
alter table sc add check(scNO like '[0-9][0-9][0-9][0-9][0-9]')
alter table sc alter column SNO char(5) not null
alter table sc alter column CNO char(5) not null
alter table sc add foreign key(SNO)references student(SNO)
alter table sc add constraint FK_COUNO foreign key (CNO) references course(CNO)
alter table sc add check (MARK>=0 AND MARK<=100)