Name: Roll No: Submitted To: Ma'am Shahista Deen Class: Bs (CS) Semester: 4 Subject: Distributed Database Project: Final
Name: Roll No: Submitted To: Ma'am Shahista Deen Class: Bs (CS) Semester: 4 Subject: Distributed Database Project: Final
Roll No:
Submitted To:
Ma’am Shahista deen
Class:
BS (CS)
Semester:
4th
Subject:
Distributed Database
Project:
Final
Duration varchar(10),
Student_id varchar (10) not null,
Teacher_no varchar (10) not null,
primary key(Duration),
foreign key(Student_id) REFERENCES Student,
FOREIGN key(Teacher_no) REFERENCES Teacher
)
)
insert into Labour values('small','1000')
insert into Labour values('medium','2000')
insert into Labour values('big','3000')
insert into Labour values('high','4000')
insert into Labour values('extra small','5000')
insert into Labour values('extra large','6000')
insert into Labour values('extra big','7000')
insert into Labour values('starter','8000')
insert into Labour values('expert','9000')
insert into Labour values('beginner','10000')
--To Display h1
select * from h1
select *
into h2
from Student
where Student_id='E2'
--To Display h2
select * from h2
select Teacher_no,Location
into vp2
from Teacher
Show hp1
select * from hp1
select *
into hp2
from Teacher
where Teacher_no='P2'
select * from hp2
select *
into ha2
from University
where Duration='3'
--To show ha2
select * from ha2
Display hs1
select * from hs1
select *
into hs2
from Labour
where Title='V.P.S'
Display hs2
select * from hs2