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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Which one is better Distinct or Group By?

655429May 28 2009 — edited May 29 2009
Which one is better performance vise?

Select A.aa,B.bb,C.cc
From A,B,C
Where A.aa = B.aa and A.cc = C.cc
Group By A.aa,B.bb,C.cc

OR

Select DISTINCT A.aa,B.bb,C.cc
From A,B,C
Where A.aa = B.aa and A.cc = C.cc
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 26 2009
Added on May 28 2009
28 comments
7,598 views