Date Conversion - response (3) by Qaisar Aftab Kiani
Hi Mallesh, You can simple check the length of incoming date string and based on that you can concatenate 0 in the start and make the string in a standard format for your rest of the code, like SELECT...
View ArticleCase statement returning "Bad character in format or data...." - response (4)...
Are you saying I should not cast C_POL as decimal?
View ArticleFailure 2646 No more spool space in - response (8) by rajwin03
Hi All, Is it possible to export data into exel file using Fastexport? Please help me by providing example if possible. Thanks
View ArticleError Loading tablehaving identity column with INSERT/SELECT using TPT...
I met with the exact same problem earlier today. I was using TPT (TTU 13.10) to load data into a TD14.0 database. Once I upgraded to TPT (TTU 14.0) the error changed into just a warning and...
View ArticlePassing parameter in macro/procedure - topic by Kalidasrajendran
Hi, Is there any option available in Teradata to set a default value, while initializing a parameterised variable? Example: In Oracle, we have like Create or replace procedure sample (firstname...
View ArticleDate Conversion - response (4) by harpreet singh
Here you go SELECT '12-Aug-12' AS COL1 , CAST(CASE WHEN CHAR_LENGTH(SUBSTRING(COL1 FROM 1 FOR POSITION('-' IN COL1)-1))=1 THEN '0'||COL1 else COL1 end AS DATE FORMAT 'DD-MMM-YY') ; SELECT '2-Aug-12' AS...
View ArticleCase statement returning "Bad character in format or data...." - response (5)...
You will always get an error if you you are casting a character data into numeric INTEGER/DECIMAL. You should check whether the content is numeric is or not before casting it. I guess your UDF...
View Article_UNICODE in comments - procedures - response (2) by bjteradata
Did you ever find out a solution for this? I have found that when a procedure is saved in Atanasuite and compiled in Studio Express these show up occassionally.
View Article_UNICODE in comments - procedures - response (3) by bjteradata
I found that there was a "tab" character in the procedure I was creating on the server. Turns out that Atanasuite creates it fine with the tab, but Studio Express adds this _UNICODE business. I guess...
View ArticleUsing templates for operators provided in TPT - response (8) by nitindixit
Hi Feinholz Thanks for the reply. I searched the Teradata website but could not find user guide for tpt version 13.1. I could find version 13 is present , and it does not contain 'Simplifying Scripts...
View ArticleDiff btw hard and soft RI - response (5) by arvindp
Hi joedsilva Thansk for the explanation. How does the soft RI will really improve the query performance, when we join the 2 tables, the rule is to have both the table data on the same AMP. Thanks in...
View ArticleCase statement returning "Bad character in format or data...." - response (6)...
Okay when i run that I'm still getting the same error rather than running and displaying "bad data"
View ArticleSQL Help : Left join - response (3) by mathiroom
If you use AND operator in OUTER JOIN it will take more SPOOL, try WHERE clause but it will filter the result based on the inner table.
View ArticleSQL Assistant 13.10.0.03 Parsing Bug? - topic by brydgesk
SQL Assistant normally allows you to kick off multiple queries in sequence, if each query is in the SQL window, or if you highlight the queries you'd like to run. We just ran into an issue where a...
View ArticleDoes the order of columns matter in SQL statement - topic by jyo1105
Hi all, I am completly new to teradata. I have a query to run in SQL assistant which has some calculated columns. I wonder if order of the columns matter. For example when 1st column depends on 2nd...
View ArticleUsing templates for operators provided in TPT - response (9) by feinholz
All of our docs for all releases are in the same place. Thus, if you can see the TPT 13.00 docs, you should be able to see the TPT 13.10 docs. http://www.info.teradata.com/
View ArticleDoes the order of columns matter in SQL statement - response (1) by Qaisar...
Hi Jyo, No the sequence of columns doesn't matter as long as they are in the same SQL scope. Your query should run fine. Regards, Qaisar Aftab Kiani.
View ArticleCase statement returning "Bad character in format or data...." - response (7)...
I think I put the condition wrong. When udf_isnumeric() returns 1, does it mean the data is numeric or non-numeric. The code is assuming that return code ZERO represents the NUMERIC content. In this...
View ArticleTearadata SQL Help - Very much Urgent - topic by reddy27
Hi All, We need to make rows for data in columns. In other works, there are say 5 columns each representing one product and we need to transform that information and create 5 rows one for each...
View Article