RE:performance tuning for query with 27 left joins - response (3) by...
Thanks a lot ulrich.I have re-collected the stats and explain plan works fine.now it shows only 15 seconds. ''P.S. The PI of EFBI_DEV1_CSPR_T.STG_CSPR_WST_CDR doesn't seem to follow the first priceple...
View Articlefloat data type in teradata - topic by vijayshankar245
I have to do the following transformation Round(sum(column),2) The datatype of column is float.. Round() function is available in oracle. --How to implement this requirement in Teradata.Should I use...
View Articlefloat data type in teradata - response (1) by ulrich
From the manual Decimal Results and Rounding When computing an expression, decimal results that are not exact are rounded, not truncated. For more information on rounding rules and how the...
View ArticleRE:performance tuning for query with 27 left joins - response (4) by VandeBergB
Don't make the mistake of confusing the measurement labels in the explain plan with wall clock time. When your reading an explain plan, the following words are all pronounced as "COST", seconds,...
View ArticleRE:performance tuning for query with 27 left joins - response (5) by ulrich
LASTUPDATE_DTTM is part of the PI and you need to specify the whole PI to get the PI access benefits - either for PI access or local merge joins. And I have some doubts this can ever be achived with a...
View Articlehow to get the sqltext from queries that ran during an time interval without...
funny question - you don't want to enable a loggiing but you want the logging info. no - that the purpose of DBQL which you need to enable.
View ArticleCan some one provide the solution for the below scenario? - response (7) by...
Saikandimalla, I am not doing your job. Did you try to understand what this SQL does? If it does not meet your needs try to adopt it to your requirements.
View ArticleWould the results differ if the last condition was: WHERE employee.last_name...
Read the manuals on basic SQL
View ArticleProblems with dynamic creation of Volatile tables - topic by ratzesberger
Guys, Playing with some engine designs that require volatile tables structures based on existing tables structures on a system. The number of unique table structures is very high, so minimal...
View ArticleProblems with dynamic creation of Volatile tables - response (1) by Fred
Since you are specifying NoPI (vs. trying to copy the existing PI): CREATE VOLATILE TABLE myTemp AS (SELECT * FROM SourceDb.SourceTable) WITH NO DATA NO PRIMARY INDEX ON COMMIT PRESERVE ROWS;
View ArticleProblems with dynamic creation of Volatile tables - response (2) by ratzesberger
Love it when the simple solution right in front of your own eyes is making you go in cricles. Much appriciated!
View ArticleProblems with dynamic creation of Volatile tables - response (3) by MadMac
I consider this to be a documentation issue (it could be an implementation issue - but we don't know). The CT AS documentation for 13.10 is not at all clear about the behavior of indexes following the...
View ArticleProblems with dynamic creation of Volatile tables - response (4) by ratzesberger
And to add on to this the work around that is great for this one usecase, opens up another set of issues: What about the likes of Stats? Creating a copy of an existing table without SIs but with...
View ArticleCompress text value NULL - topic by toadrw
Hello: Compress('NULL') Will this compress an actual text value of NULL (i.e. 'NULL')? I understand it doesn't make a whole lot of sense to store NULL as text, but this isn't my data so I can't do...
View ArticleChsnge in PPI of a table - topic by teradatauser2
Hi, There is a requirement to add a PPI to an existing table. I havedone two tests : 1. sel partition , count(*) from tablename group by 1. This shows me almost even distribution of data. 2. sel *...
View ArticleCompress text value NULL - response (1) by ulrich
compress('NULL') will compress the String 'NULL' and any NULL as well as NULL is compressed in any case if a compress statement is given.
View Articlehow to get the sqltext from queries that ran during an time interval without...
Hello, I was thinking that the info about current queries should be in some place in the Teradata database as part of the normal operation of the database where it could be possible to "see" them...
View ArticleQueryId exists in QryLogOjects but not in QryLog - topic by HY
Hi, In release 13.10, is it possible that ProcID and QueryID exists in QryLogObjects but not in QryLog? read more
View ArticleMultiLoad or TPump Utility - topic by gv
Hello All, I want to update a multiset table which has a Sparse Join Index & a Value Ordered Secondary Index. (There may be a scenario to update 5 target tables with one source) Which utility can...
View Article