execute immediate with sting in sql statement in teradata - response (6) by...
I getting following error then running my stored procedure having dynamic SQL. CALL Failed 7689: PROC_POPULATE_TEST:Invalid dynamic SQL statement. This is my stored procedure. REPLACE PROCEDURE...
View ArticleError while Executing a Dynamic SQL in Teradata Stored Procedure - response...
I am still getting the error. CALL Failed. 7689: PROC_POPULATE_TEST:Invalid dynamic SQL statement. Below is my Stored Procedure: REPLACE PROCEDURE DT_SDMT.PROC_POPULATE_TEST( ) BEGIN DECLARE...
View ArticleHow to Update a timestamp field in a table in Teradata to convert from GMT o...
We are having a table in teradata with a time stamp field defined as UPDATE_TS TIMESTAMP(6) and having values in GMT. We need to UPDATE those values to American Central Time(With Daylight Saving)....
View ArticleNeed to exclude data in a specific month - forum topic by lindabii
Hello there, I need to exclude data in a specific month, say 2005/8. My query was like this SELECT All_Sales.DaysNum, All_Sales.AvgRev, All_Sales.SpecificMon, All_Sales.Store FROM (SELECT...
View ArticleHow to Update a timestamp field in a table in Teradata to convert from GMT o...
Try if this works: UPDATE_TS + (EXTRACT(TIMEZONE_HOUR FROM UPDATE_TS AT 'America Central') * INTERVAL '1' HOUR) Of course you will encounter problems with two timestamps returning the same result when...
View ArticleNeed to exclude data in a specific month - response (1) by dnoeth
When you have a close look at the data you should notice that it's not '2005 8', but ' 2016 5'. Instead of casting two times to a string you better simply GROUP BY on both columns or...
View Articleexecute immediate with sting in sql statement in teradata - response (7) by Fred
Answered in the other thread. Please open a new topic for new questions - go to hte main page for this forum and click the big button at the top.
View ArticleError while Executing a Dynamic SQL in Teradata Stored Procedure - response...
SELECT is not valid for EXECUTE IMMEDIATE. If you want to build a SELECT statement dynamically, use a dynamic cursor DECLARE C1 CURSOR FOR S1; PREPARE S1 FROM UPD_STRING; OPEN C1; If the SELECT...
View ArticleSelected non-aggregate values must be part of the associated group - response...
Instead of CASE WHEN condition THEN SUM(expression) ELSE 0 END you need to code these as SUM(CASE WHEN condition THEN expression ELSE 0 END)
View ArticleHow to resolve 'string contains untranslatable character' while using XMLAGG...
I am trying to use XMLAGG to transpose the row-wise data to comma separated value in Teradata 15. Its working fine with English (LATIN character set) characters. But while I am using other characters...
View ArticleConversion of Integer to Date Format in Teradata - forum topic by send2veda
Hi, Good after nonn! I have a table having a column Time_1 as integer data dtype and having values 201501, 201405 etc.. How do i convert it any to Date format like 'yyyy-mm-dd' Basically i need to...
View ArticleHow to resolve 'string contains untranslatable character' while using XMLAGG...
What client character set are you using for the INSERT? Have you checked, e.g. using CHAR2HEXINT, to be sure proper UNICODE values have been stored?
View ArticleConversion of Integer to Date Format in Teradata - response (1) by sakthikrr
Change it to the Teradata internal date format: create table temp1 ( Time_1 integer ); insert INTO temp1('201604'); insert INTO temp1('201605'); insert INTO temp1('201606'); select (time_1 - 190000) *...
View ArticleConversion of Integer to Date Format in Teradata - response (2) by yuvaevergreen
SELECT ADD_MONTHS(TO_DATE('201501','YYYYMM'),-3)
View ArticleHow to resolve 'string contains untranslatable character' while using XMLAGG...
After using varchar(1000), character set UNICODE issue is solve.
View ArticleREGEXP_SUBSTR Function in Aster - forum topic by sajmal
Hi, I am using following REGEXP_SUBSTR in Teradata 14 and result is fine. SELECT REGEXP_SUBSTR(SUBSTR('This is sample text day_of_month is 17--this value should be returned',POSITION(...
View Articlehow to determine concurrent Instances/connection - forum topic by udayp
Hi, How many concurrent connections allowed to a particular teradata box? How many maximum instances are allowed OR is there any calculation need to be done to get it? Can anyone please help me on...
View Articletemporary table question - forum topic by b-arkstuff
Hello, I am sure someone will say - you should have looked through the forum for answers - well I did. In SQL Server there are three types of temporary tables table variables (1), #tables (2) and...
View Articletemporary table question - response (1) by b-arkstuff
That's great - wait 24 hours for a reply, as if I have nothing better to do
View Articletemporary table question - response (2) by dnoeth
At least you got 23 more hours to read the manuals :)does not work is not a very precise error description, you probably didn't specify the COMMIT option correctly. A direct translation of SQL...
View Article