Quantcast
Channel: Teradata Forums - All forums
Browsing all 27759 articles
Browse latest View live

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 Article


Variables 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 Article


Teradata 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 Article

How 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 Article

Variables 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 Article


How 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 Article

How to sum up totals from different columns and insert into one column -...

thanks Raja K Thaw. works well.

View Article

using 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 Article


ABU 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 Article


Make 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 Article

Question 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 Article

Stored procedure - response (4) by Divya Bharathi

Thank u so much

View Article

Make 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 Article


How 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 Article

Get 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 Article


How 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 Article

Question Regarding Stored Procedure - response (1) by Raja_KT

Try with TABLENAME =TNAME;Try step by step and execute it.  

View Article


BODS 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 Article

Immediate 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 Article

Get 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
Browsing all 27759 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>