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..
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