SQL to find Row Count - response (4) by macktd
Hi dieter, could you please explain diff blw rowcount|rowcount2|rowcount3
View ArticleIssue with Decimal(38,0) data type in BTEQ - response (1) by dnoeth
Try FORMAT 'Z(38)' or FORMAT '9(38)' Dieter
View ArticleSQL to find Row Count - response (5) by dnoeth
Cut'n'paste from the Database Administration manual: RowCount If StepName is MRM (Merge Row Multiple) or EXE (MultiLoad), RowCount is the number of rows inserted. For all other steps, RowCount is the...
View ArticleSQL Question - response (7) by dnoeth
Of course Substring will help, ugly, but working: CASE WHEN x LIKE '%#%#%' THEN SUBSTRING(SUBSTRING(x FROM POSITION('#' IN x) + 1) FROM 1 FOR POSITION('#' IN SUBSTRING(x FROM POSITION('#' IN x) + 1)) -...
View ArticleList of tables and columns while writing sql - response (1) by dnoeth
Code completion has been added to SQLA in version 13.11. Tools - Options - Code Editor: Check "Display suggestions", optionally check "Include Table Names" Dieter
View ArticleHow to force duplication of the rows from a small table on all AMPs -...
Hi Ajyush, a NUSI on tablea.col1 will not be used for joins (unless you use a very restrictive WHERE condiition). Did you check for missing stats (using DIAGNOSTIC HELPSTATS ON FOR SESSION)?...
View ArticleBizarre error "a character string failed conversion to a numeric value" -...
Hi, I coldn't figure out why this query would fail on my 13.10.04 instance, it seems teradata db has a problem with type checking in a derived table. This works select count(case when W_AREA_CODE...
View ArticleBTEQ data format question/DATE format issue - topic by In2Art
Input file: num1|num2|date3|time4 4449343|5-4634-36-|20121005|11:49:36 107779487|8213728|20121005|01:59:25 read more
View Article"Invalid date supplied for" error - response (1) by Fred
The problem is that MS Query binds "DATE" columns as SQL "TIMESTAMP", while in Teradata these are completely different data types. Under Options, Advanced there is a checkbox to "Use DATE data for...
View ArticleSQL Left Join question - response (4) by sin
select c.customer_id, o.order_dte from customers c LEFT OUTER JOIN orders o ON c.customer_id = o.customer_id;
View ArticleQuery to convert Decimal(15) to date format 'yyyy-mm-dd' - response (3) by...
I don't think this is a complete information you have provided for any of the volunteers. No sample data, no version info. It is always easy to put your Teradata version info along with some input data...
View ArticleTeraData vs Oracle - response (47) by Satyaki.De
Considering Oracle & TD, I've noticed one significant difference in terms of PL/SQL coding point of view. When in Oracle, Programmers are encourage to write PL/SQL such as procedure, functions,...
View ArticleMinus Query in Stored Procedure - topic by shiku87
Hello, I am trying to write a stored procedure which will perform the following. 1. Dynamically create a Column List to be used in a SELECT statement 2. Minus Query read more
View ArticleTable Level Checksums - response (2) by ulrich
Yes there is. Come and join Partners 2012 Sunday 09:30 AM EST, Room: Baltimore 3-5 How to Compare Tables between Teradata Systems in a Dual Active Environment?
View ArticleTo drop the stale stats - topic by TDUser2000
Hello, I need to check whether stats defined on the tables are really used by the optimizer or just ignored. Since collect stats are more CPU consuming , need inputs on this to check all the stats...
View ArticleCompare two tables using utilities - topic by i150371485
Dear Experts, I am Newbi to Teradata. I used to compare the two tables as below. Select * from SOURCE_TABLE MINUS Select * from TARGET_TABLEThe above procedure can only get the all the records from...
View ArticleTeradata 12 Certification - response (218) by vasu6
Hi Manjusha/Rajeeva Congrates to all for your completion of teradata 12 certification exams. I am planning to do the teradata 12 certification. I donot have any documents regarding this can you...
View Article"Invalid date supplied for" error - response (2) by stani75
I had tried this option too but it didn't work. To be sure, I did several tests again but ... still I have the error : "Invalid date supplied for TABLE.COLUMN". I don't know what to do ... I don't...
View ArticleError Code 6706: The string contains an untranslatable character. - response...
I get this error when I CAST an Integer/Decimal/Float field to VARCHAR and concatenate to VARCHAR field in a SELECT clause. e.g. SELECT CAST(COALESCE(A,"") AS VARCHAR(11)) || '|' || TRIM(B) FROM...
View ArticleError Code 6706: The string contains an untranslatable character. - response...
its likely to be - check Dieters reply on http://forums.teradata.com/forum/database/implicit-data-type-conversion-to-char-ends-up-in-unicode you can validate by create volatile table sql_test as (...
View Article