Archives of the TeradataForum
Message Posted: Wed, 03 May 2000 @ 14:28:07 GMT
Thanks for the prompt and detailed response.
Running the SQL for tables A & B individually (copying the exact code from the main statement), each gives 1 row.
Running the complete SQL for table 5, with the derived tables, also gives one row.
To test the main SQL I took out the functions and the group by, and twice the number of rows were returned. (Tested by leaving table5 out of the main SQL)
I do agree that creating the temporary table would have eliminated duplicates.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|