Help on Query Tunning - response (3) by rajeev saravanan
Hi, I agree cross join is not ideal when data volume is large sorry for that will try to find some other alternative Regards R.Rajeev
View ArticleCalculating the actual query run time - response (4) by rajeev saravanan
Hi Carlos/Sachin Thanks for providing the info i have few more queries 1.) I queried the dbc.DBQLogTbl and i could find data only for the queries which i had run today, where can i find the info for...
View ArticleCombining Multiple Insert Statements with Calculations Fields - response (2)...
Hi, I want to run multiple COLLECT STATS statements simultaneously on the Teradata database. How can i achieve this using BTEQ script, can i run these multiple statements in BTEQ ? I tried...
View ArticleDropping Primary Composite Key - response (2) by taruntrehan
Hi, Thanks for your inputs. However, i understand that if primary key is not a part of primary index , then the primary keys are created as unique secondary indexes. I was able to drop the primary key...
View Articleexact table clone - response (1) by mohan.mscss
if i read you correctly, hope you are looking as like below, please let know if otherwise ct new_tablename as exissting_tblname with data and stats unique primary index(alt_id); Regards, Mohan K
View ArticleHow to transpose rows to columns without the use of .sql and Bteqs - response...
HI All, I too have same query(Need to Convert rows to cols anyone help me how to resolve it. Input: Product State population HSI MP 12 FIN...
View ArticleHOw to convert rows into columns dynamically in Teradata. - topic by Budda123
Input: Product State population HSI MP 12 FIN AP 34 read more
View ArticleHOw to convert rows into columns dynamically in Teradata. - topic by Budda123
Input: Product State population HSI MP 12 FIN AP 34 read more
View ArticleCombining Multiple Insert Statements with Calculations Fields - response (3)...
No, you can't run COLLECT STATS statements like that in BTEQ. You have do something like: collect stats on table column (row_wid); collect stats on table column (order_wid);
View ArticleHelp required on the query using analytic function - response (4) by dnoeth
Hi Bala, #1: recursion is a parallel operation, so it's much faster than a cursor which is processed serially #2: There's no built-in recursion level limit and there's no option like MAXRECURSION. You...
View ArticleCombining Multiple Insert Statements with Calculations Fields - response (4)...
Hi Mahesh, you have to split the collects into multiple scripts and then use multiple BTEQs to run them. Or you have a look at the approach i described in http://developer.teradata.com/node/16550 Dieter
View ArticleHelp on Query Tunning - response (4) by dnoeth
Could you post the explain and ifo about the actual number of rows? #1: as Rajeev mentioned "ECD.Clndr_Dt" can be simply replaced by "DATE '2012-09-21' AS CIndr_Dt" and then remove all the joins to the...
View ArticleDropping Primary Composite Key - response (3) by VandeBergB
Primary Keys and USI's are different animals if you try to run the DDL below code, it fails with "More than one primary index of primary key specified". Teradata will create a Unique Primary Index on...
View ArticleDropping Primary Composite Key - response (4) by dnoeth
Of course you can create a PI and a PK on the same table, your example only fails because you try to create two PKs. CREATE TABLE pk_test (col1 INTEGER NOT NULL ,col2 INTEGER NOT NULL ,col3 INTEGER NOT...
View ArticleHow to validate whether my PI selection is right? - topic by quest
Friends, I have defined a PI for an table. Now I need to validate whether the columns selected for PI are the right candidate. What are the ways to go for it? How can I showcase whether all the AMP's...
View ArticleCan't compile UDF's on Windows - response (3) by tdgi
Just in case anyone's wondering, I was able to fix this by reinstalling Visual Studio 2005. I apparently outsmarted myself by attempting to keep the VS install small by not including "unnecessary"...
View Articleunable to run query in Teradata Studio Express while being used in VMware...
Facing the same issue, any guidence please?
View ArticleHow to validate whether my PI selection is right? - response (2) by Wasif.Kabeer
You may check the skew factor of the PI column by using the below query. Minimum the skew factor, better is the distribution. /* Get Skew factor of a single column */ SEL (100 -...
View Article