Archives of the TeradataForum
Message Posted: Tue, 13 Dec 2005 @ 11:09:10 GMT
Subj: | | Re: Global Temporary Tables and Statistics |
|
From: | | Michael Larkins |
Hi David:
If you or anyone ever asked this before it would be in the archives. But to answer your question you must collect statistics on the instance
of the table, not the table itself (in DBC).
COLLECT TEMPORARY STATISTICS ON ;
This would collect all statistics that have been collected on the definition, like a real table. However, if no statistics are
collected on the definition, then you must add either INDEX or COLUMN indications when you collect it on the instance.
Hope this helps,
Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor
|