Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
code
--Sql Server 2014 Express Edition --Batches are separated by 'go' select @@version as 'sql server version' create table Student( Fac_NO char(10) not null primary key, Name nvarchar(50) not null); create table Lectures( Lec_ID char(10) not null primary key, Name nvarchar(50) not null); create table Assessments( Fac_NO char(10) not null, Lec_ID int not null, constraint PK_Assessments primary key (Fac_NO,Lec_ID), constraint FK_Students foreign key(Fac_NO) references Student(Fac_NO), constraint FK_Lectures foreign key(Lec_ID) references Lectures(LEc_ID));
run
|
edit
|
history
|
help
0
Cine latino
dbms pracs
Rextester.java
Mc170404738
SQL for beginners( defined with errors while enforcing constraints)
Branch
Items
Names
Test if a string can be made with substrings!
Department revenue pivot