DB LAB 5
DB LAB 5
on
primary(name=Secretariat04,
filename='C:\DB\Secretariat_nou.mdf',
size=10,maxsize=40,
filegrowth=2)
log on
(name=Secretariat04_log,
filename='C:\DB\Secretariat_nou_log.ldf',
size=10,maxsize=20,
filegrowth=2)
go
use dbSecretariat04_05
select t1.NumeStudent+''+t1.InitialaStudent+''+t1.PrenumeStudent as
[Studenti la ACE si ELTH]
from tblStudent as t1, tblStudentELTH as t2
where t1.NrLeg=t2.NrLeg
select t1.NumeStudent+''+t1.InitialaStudent+''+t1.PrenumeStudent as
[Studenti la ACE si ELTH]
from tblStudent as t1
where t1.NrLeg in
(select t2.NrLeg from tblStudentELTH as t2)
select t1.NumeStudent+''+t1.InitialaStudent+''+t1.PrenumeStudent as
[Studenti numai la ACE]
from tblStudent as t1
where t1.NrLeg not in
(select t2.NrLeg from tblStudentELTH as t2)