Diff btw hard and soft RI - response (6) by Qaisar Aftab Kiani
You get the performance gains while loading or maintaining the tables because in case of child table the database engine doesn't look for the related parent table key rather load the table assuming the...
View ArticlePassing parameter in macro/procedure - response (1) by Qaisar Aftab Kiani
You can do that for macros. See this link http://forums.teradata.com/forum/database/macro-default-value-0
View ArticleFailure 2646 No more spool space in - response (9) by Qaisar Aftab Kiani
You can output in a csv file and then open it in EXCEL. This could give you a head start, rest you can figure out in the utility manual .logtable log_tbl .logon...
View ArticleFailure 2646 No more spool space in - response (10) by Qaisar Aftab Kiani
For new topics kindly start a new thread!
View ArticleTearadata SQL Help - Very much Urgent - response (1) by Qaisar Aftab Kiani
What is PROD_LVL_NM? Can you share the sample input data and the expected output data to help understand the problem more clearly.
View ArticleTearadata SQL Help - Very much Urgent - response (2) by Qaisar Aftab Kiani
You can UNION multiple SELECT statements to transform the results from rows into columns like Considering PROD_LVL_NM is a unique random value generated against each row... SELECT KEY, ROW_NUMBER()...
View ArticleTearadata SQL Help - Very much Urgent - response (3) by reddy27
Mapping: Source COLUMN Transformation TargetTable Field Tablename PRODUCT_1 t_prd SOR_PROD_CD Tablename PRODUCT_1 The value is PROD_X_OTH_HIER_PROD.OTH_HIER_CHAR_PROD_CD where OTH_HIER_KY = 14...
View ArticleTearadata SQL Help - Very much Urgent - response (4) by reddy27
It is more like reading colums from the same row of a source table and inserting one row for each matching column..in other words converting from columns to rows but the key should be the same for all...
View ArticleDate Conversion - response (7) by mathiroom
sel case char('12-aug-12') when 9 then add_months((('12-aug-12')(format 'dd-mmm-yy',date)),12*100) end, case char('1-aug-12') when 8 then add_months((('0'||('1-aug-12'))(format...
View ArticleDoes 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 ArticleProblem after ARCMAIN import - response (5) by teradatauser2
use this, this works.. BUILD DATA TABLE (db2.tab), release lock;
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 Article