SQL Query part 3
-- DISPLAY DATA OF ELDER STUDENT --select top 1 * from student order by age desc select * from student where age = (select MAX(age) from student) -- DISPLAY DATA OF WEAK STUDENT select * from student where cgpa = ( select min(cgpa) from student) -- DISPLAY DATA OF THOSE STUDENT WHO HAVE NOT ENROLLED ANY --COURSE YET select * from student where sid not in( select sid from enrollment) --DISPLAY ALL THOSE TEACHER WHO HAVE NOT ALLOCATE -- ANY COURSE YET. select * from teacher where tid not in( select tid from allocation) -- DISPLAY ALL THOSE TEACHER WHO ARE TEACHING 'CS' --CATEGORY COURSE select * from teacher where tid in( select tid from allocation where cid in( select cid from course where category='cs')) --DISPLAY ALL THOSE TEACHER WHO HAVE ALLOCATE -- ANY COURSE YET. select * from teacher where tid in( select tid from allocation) -- DISPLAY ALL DATA OF STUDENT WHOSE CGPA IS MAX select * from student where cgpa= ( select max(cgpa) from student) -- DISPLAY ALL THOSE TEAC...