Does the order of columns matter in SQL statement - response (2) by mathiroom
Order of the columns doesn't make problem. if you are selecting fileds with aggregate function used in query, you shoud have to do GROUP BY. otherwise non-aggregate problem will occur. Try the below...
View ArticleDate Conversion - response (9) by macktd
Hi, Harpreet singh I'm new teradata , when i was executing below query i saw date SELECT '12-Aug-12' AS COL1 , CAST(CASE WHEN CHAR_LENGTH(SUBSTRING(COL1 FROM 1 FOR POSITION('-' IN COL1)-1))=1 THEN...
View ArticleArcmain question : Operation not allowed: table is being restored - response...
Hi Diether, thanks for reply. The problem was that my table was locked, I didnt use a release lock after Restore. The final code should be. BUILD DATA TABLE (db2.tab), release lock; It works now
View ArticleDate Conversion - response (10) by harpreet singh
Hi Macktd, there are several wasy to tackle it. It happens because of setting in dbs control century break parameter where we customize Teradata that if user doesnt provide a century for date then...
View ArticlePlease tune this quey as it is taking terabytes spool space - topic by terankit
Hi All, I have a query which was working fine till the time we were having small volume data in table A. It started taking terabytes of spool space when there was Million rows in Table A. Can someone...
View ArticlePlease tune this quey as it is taking terabytes spool space - response (2) by...
Here Table A and Table B are the same table. The requirement was: Update Status in Z if data from A loaded to C and D. To check that data from A loaded to C and D we are matching the column values...
View ArticleMultiLoad Query - topic by mohan.mscss
Hi All, Could you please help me to avoid storing duplicates in the multiset table via multiload where in already I have a populated data in it? I have tried it with Ignore duplicate rows in the DML...
View ArticleDate Conversion - response (11) by Malleshkr
Thank you guys, it worked...and finally we managed with the below on. (CASE WHEN CHAR_LENGTH(CREATED) = 9 THEN cast(cast(substr(cast(CREATED as char(9)),1,7)||'20'||substr(cast(CREATED as...
View ArticleTearadata SQL Help - Very much Urgent - response (5) by Qaisar Aftab Kiani
Did you try the solution which I suggested earlier? What is missing in it?
View ArticleMultiload Concatenation Field Query - topic by mohan.mscss
Hi all, I have a table name called with the structure of "memp(a int, b varchar(20))" In my flat file, i have 3 columns where i need to merge 2 and 3 columns together in the table memp by using...
View ArticleTearadata SQL Help - Very much Urgent - response (6) by reddy27
Thanks a lot for the reply aftab, I have written a query like below, I didn't quite understand what you are saying..could you please modify below script with what you are saying - i would really...
View ArticleDate Conversion - response (13) by macktd
Thank you very much..harpreet singh Bhai........
View ArticleViewpoint data collector - Lock Info error - response (2) by ratnamch
what is the main differnce between NUSI & FTS ? could you please explain in breafly. thank's ratnam
View ArticleTearadata SQL Help - Very much Urgent - response (7) by Qaisar Aftab Kiani
Hi, I don't think there is an efficient way of getting what you want as all the tables joined together (OOFERATTRIBUTE, T_PROD_X_OTHER_HIER_PROD, T_PROD_DEF etc) are dependent on each other. See if...
View ArticleTearadata SQL Help - Very much Urgent - response (8) by Mathuram
Try this Query, i think it will work... WITH TEMP (LEAD_KY,PROD_CAT_LVL_1_NM, AUD_INSRT_DT_TM, AUD_INSRT_USR_ID,PRODUCT_1, PRODUCT_2, PRODUCT_3, PRODUCT_4, PRODUCT_5) as (SELECT (200000000000 +...
View ArticleTearadata SQL Help - Very much Urgent - response (9) by reddy27
Thanks a lot Aftab and Mathuram --- I will try them out and will let you know if I see any issues -- Thanks once again
View ArticlePlease tune this quey as it is taking terabytes spool space - response (3) by...
Check in the step table (dbqlsteptbl) which step is creating huge spool file. There might be skew or some duplication might be happening.
View ArticleExplanation of fields in DBQLOGTBL and how to use info present in it - topic...
Hello, Which document will contain explanation of fields in DBQLOGTBL? Some of the fields of interest are as follows. EstMaxRowCount, NumSteps, StatementType, WDID, LSN Integer, SLGMet etc. Is there...
View ArticleExplanation of fields in DBQLOGTBL and how to use info present in it -...
Book: Teradata User Documentation => Database administration Chapter 14: Tracking Processing Behavior with DBQL Things to Consider When Logging DBQL Data
View ArticleExplanation of fields in DBQLOGTBL and how to use info present in it -...
Check this out http://developer.teradata.com/blog/carrie/2012/07/intrepreting-dbql-dela...
View Article