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
Sql Question 1
COMPUTED COLUMN
Life cycle
sql test
Student.sql
MyDatabase
Items
f
Microsoft SQL Server in 10 mn - Lesson 14 Joining Tables samples...
Jogarao1