RE:

  • We can use Exists instead of Outer Join which is more speed than Outer Join

    When you are not expecting any column from second table then don't use Join use only Exists. Like following

    SELECT S.* FROM Students s

     WHERE NOT EXISTS

     (

      SELECT 1 FROM StudentExam se WHERE se.ExamName = 'SQL Server'

      AND S.StID = SE.StID

    &nbsp 

Viewing 0 posts

You must be logged in to reply to this topic. Login to reply