GATE | GATE CS 2012 | Question 51 Read Courses Practice Improve Improve Improve Like Article Like Save Article Save Report issue Report Table A Id Name Age ---------------- 12 Arun 60 15 Shreya 24 99 Rohit 11 Table B Id Name Age ---------------- 15 Shreya 24 25 Hari 40 98 Rohit 20 99 Rohit 11 Table C Id Phone Area ----------------- 10 2200 02 99 2100 01 Consider the above tables A, B and C. How many tuples does the result of the following SQL query contains? SELECT A.id FROM A WHERE A.age > ALL (SELECT B.age FROM B WHERE B. name = "arun") (A) 4 (B) 3 (C) 0 (D) 1 Answer: (B) Explanation: The meaning of âALLâ is the A.Age should be greater than all the values returned by the subquery. There is no entry with name âarunâ in table B. So the subquery will return NULL. If a subquery returns NULL, then the condition becomes true for all rows of A (See this for details). So all rows of table A are selected. Source:Â https://www.geeksforgeeks.org/database-management-system-set-3/Quiz of this Question Level Up Your GATE Prep!Embark on a transformative journey towards GATE success by choosing Data Science & AI as your second paper choice with our specialized course. If you find yourself lost in the vast landscape of the GATE syllabus, our program is the compass you need. Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore. Last Updated : 28 Jun, 2021 Like Article Save Article Previous GATE | GATE CS 2012 | Question 59 Next GATE | GATE CS 2012 | Question 65 Share your thoughts in the comments Add Your Comment Please Login to comment...