1 1 vote Databases sql databases query + – amitqy 935 views answer comment Share Follow Print See all 3 Comments 3 3 Comments reply Hemanth_13 commented Nov 17, 2018 reply Follow flag 0 should be the answer 2 2 replyShare amitqy commented Nov 17, 2018 i edited by amitqy Nov 20, 2018 reply Follow flag I am getting 4. Select* from professor P1 where P1.rating > ALL( 8.5,8.5) ,<-- that's why I am getting 4. please explain how 0? This a correlated query, therefore each tuple of P2 will be compared with P3. And for innermost query output should 5 for 8.5. What did I miss? 0 0 replyShare Mk Utkarsh commented Dec 2, 2018 reply Follow flag amitqy i think https://gateoverflow.in/273528/self-doubt-sql this will help you 0 0 replyShare Please log in or register to add a comment.
0 0 votes for Inner Query Check https://gateoverflow.in/273528/self-doubt-sql Inner Query Gives ( 8.7, 9.7, 9.8, 8.7) then Outer Query Select * from Profesor P1 Where P1.rating > ALL(8.7, 9.7, 9.8) /* eleminate duplicate because it is Set of Value */ WIll Give as Output Himanshu Kumar Gupta answered Jun 1, 2020 Himanshu Kumar Gupta comment Share Follow 0 reply Please log in or register to add a comment.