Lab Program 2
Lab Program 2
2 Akhil ISE Sr 22
3 Bhavya CSE Sr 21
4 Shwetha CSE Jr 19
5 Nagaraj ISE Sr 22
6 Hema CSE Jr 19
SQL> insert into faculty values
(&fid, ‘&fname’, &deptid);
Fid Fname Deptid
502
(124, 125, 128) - (124, 125, 128)
returns no records (so NOT EXISTS returns TRUE)
503
(124, 125, 128) - (128) returns records
504
(124, 125, 128) - (124) returns records
505
(124, 125, 128) - (empty) returns records
v. Find the names of faculty members for whom the
combined enrolment of the courses that they teach is
less than five.
(i.e we need to find the faculty names who teach less
than 5 cnames and these cnames must be enrolled .