1 1 vote Consider two queries Q1- SELECT DISTINCT a from R WHERE b>0 ; Q2- SELECT a from R WHERE b>0 GROUP BY a; a)Both produce same answer b)The answer of Q1 is always contained in the answer to Q2 c)The answer of Q2 is always contained in the answer to Q1 d)Both produce different answer Databases + – S Harika 542 views answer comment Share Follow Print See 1 comment 1 1 comment reply G Shaheena commented Jul 15, 2017 reply Follow flag in query 1 distinct means it produce unique tuples in query 2 it consider GROUP BY and it is possible to create duplicate tuples so answer of q2 is always contained in the answer to q1 c is answer 1 1 replyShare Please log in or register to add a comment.
0 0 votes 2 queries produce 2 different answers G Shaheena answered Jul 15, 2017 G Shaheena comment Share Follow 0 reply Please log in or register to add a comment.