How to concatenate a date in three different columns? - response (11) by Wildc
The problem is that it works fine if I only look at part of the data, but when I want too look at more than 1047 rows i get the error message ' invalid date. Meaning row number 1048 is causing the...
View ArticleGet a Thousand Separators Using BTEQ Export Script - response (2) by murthy1234
select cast((CAST(COALESCE(TRIM(a.salary),' ') as DECIMAL(19,2)) (FORMAT '$$$,$$$' )) as decimal(19,2)) as salary, from employeeHi Raja Thanks for the reply. I tried with you...
View ArticleHow to concatenate a date in three different columns? - response (12) by Raja_KT
Then you if you can share more details, like your ddl, what you have and what is the expected output, then it will be easier to interpret.
View ArticleGet a Thousand Separators Using BTEQ Export Script - response (3) by Raja_KT
Did you do in unix, bteq or sql assistant or td studio or where? in bteq,unix: select cast(100000 as format '$$$,$$$$'); it looks like you want in this format too CAST (salary AS FORMAT...
View ArticleConnecting Business Objects to Teradata - response (2) by dazzdadawg
Hi, I managed to load the Teradata ODBC drivers on my laptop and created a Systen DSN using those drivers. The System DSN works fine from my laptop as I able to see the database and tables. When I...
View ArticleSAP Business Objects 4.1 SP2 connecting to Teradata 14 - forum topic by...
Hi, I am trying to connect to Teradata 14 using ODBC connection. ODBC drivers were installed on both server and client machine. IDT connection from my machine to teradata is working fine but I get an...
View ArticleQuestion Regarding Stored Procedure - response (2) by mitsukiefi
It seems this code is working (note that I removed the first input parameter): REPLACE PROCEDURE BLI_CheckForUserTable (IN t_name VARCHAR(64), IN vt_name VARCHAR(64) ) BEGIN DECLARE var1 SMALLINT;...
View ArticleSubstracting two TIME(6) datatype values - forum topic by larun1616
HI I have two columns Start_Time and End_Date in a table with data type TIME(6) and i want to substract the two values in a stored Procedure. Format:HTML Format Version:1.0 StartHTML: 165 EndHTML:...
View ArticleMultiple queries in one connectiong through Teradata studio / Eclipse plugin...
Hi, In SQL Assistant it is possible to run multiple queries in parallel (after setting some of the settings correct). I prefer to use Teradata Studio, the eclipse plugin, but couldn't find a setting to...
View ArticleSubstracting two TIME(6) datatype values - response (1) by CarlosAL
BTEQ -- Enter your SQL request or BTEQ command: SELECT CAST('22:22:00' AS TIME(0)) - CAST('22:00:00' AS TIME(0)) HOUR(2) TO SECOND(0) ; *** Query completed. One row found. One column returned. ***...
View ArticleTuning LIKE Operator - response (6) by Boopathi15
Thanks Everyone, I've gone with Gerardo Martinez suggestion and it works,,
View ArticleHow to concatenate a date in three different columns? - response (13) by dnoeth
That's simple, there's an invalid date. This function will return a NULL for invalid dates: REPLACE FUNCTION fnc_try_ymd_to_date(y INTEGER, m INTEGER, d INTEGER) RETURNS DATE SPECIFIC...
View ArticleGet a Thousand Separators Using BTEQ Export Script - response (4) by dnoeth
Hi Sri, you need to implicitly place the thousand seperators, some countries use hundred seperators :) Do you need leading zeroes? format '-999,999,999,999.99' Otherwise: format '----,---,---,---,--9.99'
View Articleunable to obtain data value because the teradata database indicated that the...
If you include the NUMBER column in your query, you get an error. If you omit the NUMBER column from your query, it works OK. It seems clear that the problem is due to a lack of NUMBER data type...
View ArticleVariables In Custom SQL Block - response (4) by frnewbrough
Sorry you did point that out you were using pearl. What version of Teradata are you using? I tested a similiar construct on teradata 14.0 and it DID use partition elimination. Please post your table...
View ArticleGet a Thousand Separators Using BTEQ Export Script - response (5) by david.craig
Hi Sri, Your format string is correct and should work. See the following submitted from bteq with fieldmode. BTEQ -- Enter your SQL request or BTEQ command: sel 100000 (FORMAT 'G999999999D99'); ***...
View Articlesql server . How they can be conveted to valid TeraData types - forum topic...
Tell how below datatypes in sql server . How they can be conveted to valid TeraData types? int Tinyint Smallint bigint Decimal(18,5) numeric[p[,s]] float real smallmoney money Varchar(10) Char(4)...
View ArticleQuestion Regarding Stored Procedure - response (3) by frnewbrough
Here is a revison that would improve it a bit and maintain your first parm: REPLACE PROCEDURE BLI_CheckForUserTable (IN d_name VARCHAR(64), IN t_name VARCHAR(64), IN vt_name VARCHAR(64) ) BEGIN DECLARE...
View ArticleAPPENDING A DYNAMIC VALUE ON A TABLE IN INSERT STATEMENT IN STORED PROCEDURE...
Yes it is a limitation. You can't do that with an inline sql statement. There are some different ways to handle dynamic sql. Do you have the stored procedures and embedded SQL manual? You can download...
View Article