This is once again a a question for SQL Pundits. I can create derived tables in Teradata using these approaches
- With ( __,__)
(select statement ) alias
query
-- select ____ from a , ( select statement ) b < Join condition )
I wondered in either of the cases HOW does the Data distribution ( for the DT ) take place . Is there a rule out here ? Is there some way I can tweak the DT so that I can get re-distribution based on the key(s) I want - the same functionality as VT But I guess, it avoids having a new CT statement and also you loose stats facility ( which I can in some situations afford to loose if its not changing the explain )