Variables In Custom SQL Block - response (1) by frnewbrough
This should work. Put your parms in a derived table. INSERT xyz SELECT DISTINCT p_val FROM abc c, def b, (SELECT * (SELECT CAST(val_dt AS DATE FORMAT 'MM/DD/YYYY') AS val_dt1 FROM custom_vars WHERE...
View ArticleVariables In Custom SQL Block - response (2) by frnewbrough
This may be a little clearer. WITH min_val(val_dt) AS (SELECT CAST(val_dt AS DATE FORMAT 'MM/DD/YYYY') FROM custom_vars WHERE name = 'v_min_p_val' ), max_val(val_dt) AS (SELECT CAST(val_dt AS DATE...
View ArticleTeradata Error: [3704] '' ('0A'X) is not a valid Teradata SQL token. -...
How to rollup totals from different columns and insert into one column Hi there, I have created a column to hold the total amounts for all amounts types recorded against an event. the insert...
View ArticleHow to sum up totals from different columns and insert into one column -...
How to rsum up totals from different columns and insert into one column Hi there, I have created a column to hold the total amounts for all amounts types recorded against an event. the insert...
View ArticleVariables In Custom SQL Block - response (3) by taruntrehan
Hi, Thanks for your response. 1. I cannot declare a new variable because i am not in a stored procedure. It is a series of SQL statements called from perl script. 2. The derived tables concept and...
View ArticleHow to sum up totals from different columns and insert into one column -...
I am not sure if I understand it correctly. I think this is what you want: ..... (S5IE_ADJ_TOT_AMT+S5IE_DEDN_MAINT_EXPEND_AMT +S5IE_FGN_INC_AMT+S5IE_FRNG_BEN_AMT ........) as summing, Please let me...
View ArticleHow to sum up totals from different columns and insert into one column -...
thanks Raja K Thaw. works well.
View Articleusing COPY from TD13 archive - response (2) by bocci
I already tried using arcmain to import the dump but i get an error saying dbc id doesn't match. I looked into it and found that arcmain can only be used for import if the archive came from that same...
View ArticleABU 14.10 table restoring error - response (2) by bocci
Where can I find the COPY utility. I can't seem to find in on my TDExpress15 install or figure out where to download it.
View ArticleMake insertion to the target table quicker - forum topic by deva_048
Will block compression ='yes' statement will cause the insert statement slower ? While doing insertion i have SET QUERYBAND blockcompression='yes;' FOR SESSION; INSERT INTO TARGET_TABLE (a1,b1,c1)...
View ArticleQuestion Regarding Stored Procedure - forum topic by mitsukiefi
Dear All I cannot manage to get this stored procedure to work. I still get a compile error: SPL5000:W(L8), E(3807):Object 'TNAME' does not exist. -- DB = DWH_TTST_MSTR_MAIN -- TNAME =...
View ArticleMake insertion to the target table quicker - response (1) by Raja_KT
From the document: Block-level compression can result in some operations using considerably more CPU while operating on compressed tables (for example, queries, insert/updates, archive and restores,...
View ArticleHow to concatenate a date in three different columns? - response (8) by Wildc
Thanks for helping me. However I keep getting the error: 'Ivalid date supplied for day' whatever I do. The first step in Dieters sugestion works fine. I transform the date into a number, but when I try...
View ArticleGet a Thousand Separators Using BTEQ Export Script - forum topic by murthy1234
(FORMAT 'G999999999D99' )Hi I am using BTEQ script to export the data returned by a query (say like below) to a file called sample.txt sel salary from employee Now I am getting the sal as 100000.but I...
View ArticleHow to concatenate a date in three different columns? - response (9) by Raja_KT
Can you plz share the ddl? It works fine : create table mmmmmm(year1 smallint, month1 smallint, day1 smallint); insert into mmmmmm values( 1987,2,14); insert into mmmmmm values( .......); select...
View ArticleQuestion Regarding Stored Procedure - response (1) by Raja_KT
Try with TABLENAME =TNAME;Try step by step and execute it.
View ArticleBODS and teradata connectivity - response (1) by Raja_KT
I think this is a setting at the BODS level. I remember vaguely when I used to work on SAP DS. I changed many conficgurations. From Teradata end, to test if any setting is okay, I put one ddl at end...
View ArticleImmediate Practical Teradata DBA/Developer Online Training Provided with...
Hello Friends, This is Naveen Kumar working for a BIG MNC and having more than 6 years of working exp and having more than 4 years of teaching experience in Teradata Developer/ Teradata...
View ArticleGet a Thousand Separators Using BTEQ Export Script - response (1) by Raja_KT
You can try something like this CAST (your_field AS FORMAT ‘$$$,$$$’) In TD studio, you can also see Result Viewer prefrences, where you can change the numeric presentation.
View Article