Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

difference between distinct and group by - response (4) by Nishant.Bhardwaj

$
0
0

Hi Santosh,
Really very good explanation in distinct vs Group by
but just want to add something that  from TD 12 onwards , teradata is recommending to always use a Group by in place of Distinct in a query  and  Optimizer will automatically decide whether to apply distinct or group by internally for fetching the answer set for best performance
and also as suggested by Dieter above that TD13 will automatically rewrite Distinct to a GRoup by ..
Also as part of Teradata standards in various projects ,its told not to go with the DISTINCT option..
 
Cheers!
Nishant 
 
 
 


Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>