60 likes | 121 Views
This presentation demonstrates a Type II nested query in SQL to find faculty members without any associated students. The animation showcases the process, highlighting query execution and results. Explore SQL commands to optimize database queries effectively.
E N D
Chapter 9 Supplemental Slides Type II Nested Query Demonstration
Type II Nested Query Animation SELECT FacSSN, FacLastName, FacDept FROM Faculty WHERE NOT EXISTS ( SELECT * FROM Student WHERE Student.StdSSN = Faculty.FacSSN )
Faculty Student Type II Nested Query Animation
Faculty Student 098-76-5432 VINCE ASST Type II Nested Query Animation Result FacSSN FacLastName FacRank
Faculty Student 543-21-0987 EMMANUEL PROF Type II Nested Query Animation Result FacSSN FacLastName FacRank 098 - 76 - 5432 VINCE ASST
Faculty Student Type II Nested Query Animation Result