Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Explain plan for select distinct

MuzzJun 22 2015 — edited Jun 22 2015

I received 1 of the online test and over there the following question has been asked. I already gave answer but curious to cross check my answer with your guidance..

Question

Which piece of information show explain plan if in SQL indicate that a select distinct is being done in the SQL.


Choices are:

a-sort join

b-sort order by

c-sort unique

d-sort aggregate

e-sort group by

My Answer

I gave SORT aggregate but it looks like its sort unique because when I executed explain plan then I can see hash(unique). Please guide


This post has been answered by Karthick2003 on Jun 22 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 20 2015
Added on Jun 22 2015
3 comments
949 views