1.

What does the above query do?(a) It gives all the tuples having a distinct dept_name(b) It gives the dept_name attribute values of all tuples without repetition(c) It gives all the dept_name attribute of all the tuples(d) It gives all the tuples having a null value under the dept_name attributeThis question was posed to me in an interview for job.The question is from Basic Operations topic in portion Introduction to Relational Model and Sql of RDBMS

Answer» CORRECT choice is (B) It gives the dept_name attribute values of all tuples without repetition

Best EXPLANATION: The distinct keyword is used to explicitly force the elimination of duplicate tuples. THUS, the above query excludes duplicates.


Discussion

No Comment Found

Related InterviewSolutions