Convert Date and time to GMT(date/Time) - response (1) by CarlosAL
I'm not sure about your data, but assuming you have the time as TIME WITH TIMEZONE you can build a timestamp with time zone and do something like: SELECT MY_TIMESTAMP_WITH_TIME_ZONE,...
View ArticleReverse string search (right to left)? - response (13) by teradatauser2
Hi Ulrich, Thanks ! This logic worked.. I used : substring ( l_comment from ( character_length(l_comment) -4 ) for 5 )
View ArticleHelp with SQL - response (3) by ulrich
I guess rule 1 is not correct as sel COL1,dt,col3,col4 from vt_test group by 1,3,4,2 having count(*) > 1; gives null rows. -> all rows are first occurance... So try to explain it in different...
View ArticleHelp with SQL - response (4) by td_admirer
Hi Ulrich, For a combination of col1,dt,col4 the record with col3 value "2" is the first (which is record# 1) for dt 9/27. For dt 10/13, record # 5 is the first. In other words, these are the records...
View ArticleHelp with SQL - response (5) by dnoeth
Based on your narrative: SELECT test.*, CASE WHEN ROW_NUMBER() OVER (PARTITION BY col1,dt,col4 ORDER BY col3) = 1 THEN (dt-MIN(dt) OVER (PARTITION BY col1 ORDER BY dt,col4,col3 ROWS BETWEEN 1 PRECEDING...
View ArticleHelp with SQL - response (6) by td_admirer
Thank you very much Dieter. This is exactly what I've wanted. I am running out of spool when when run on a table with a couple million records. Can you think of something that can give me a better...
View ArticleBacking up the database objects without the data - topic by thompsonhab
I found a similiar thread to my question, but I am unclear about the answer even after reading the Teradata Archive/Restore manual. Do the following commands backup all the database objects without the...
View ArticleIgnoring duplicated rows and keep inserting. - response (4) by RMCOMP1
Hello Anderson, Can you confirm the post from 04-Aug-2009 helped you with your problem? Thanks.
View Articleto_char function in stored procedure - response (4) by DS
Can any one tell me what should be done to make to_char function work in stored procedure
View ArticleConverting Existing Table Date Counter from DAYS to WEEKDAYS - topic by...
Hi there! this is my first post so hopefully I get it right. Firsty this is work related so I cannot upload any dataset as it pertains to sensitive material. The case is that in the data base there is...
View Articleto_char function in stored procedure - response (6) by VandeBergB
It looks like your system already has the Oracle UDF's installed, as it worked in SQL Assitant. There may be some permission issues, or you may need to fully qualify the function call, check with your...
View ArticleMulti-Value compression has increased the table size - response (20) by ndbajde
If you are running on a 64 bit system you may also be running into a 8 byte alignment requirement.
View ArticleHow to write (CURRENT DATE - 1 YEAR) in teradata? - topic by teradata006
Can anyone help here how to write/convert this (CURRENT DATE - 1 YEAR) in teradata. Thanks
View ArticleHow to write (CURRENT DATE - 1 YEAR) in teradata? - response (1) by Mathuram
Using Interval we can subtract years from current date SELECT CURRENT_DATE- INTERVAL '1' YEAR
View Articleto_char function in stored procedure - response (7) by Fred
TRIM returns VARCHAR. Even if you have TO_CHAR UDF (e.g. TD14), there is no specific function prototype for TO_CHAR that accepts VARCHAR arguments. So remove TRIM and pass the numeric value returned by...
View ArticleHow to write (CURRENT DATE - 1 YEAR) in teradata? - response (2) by CarlosAL
Hi. The solution provided is wrong (or at least not completely right). You should use ADD_MONTH() instead, because: SELECT DATE '2012-02-29' - INTERVAL '1' YEAR; *** Failure 2665 Invalid date....
View ArticleMultiload Concatenation Field Query - response (2) by mohan.mscss
Hi Fred, Thank you for the comments..Regards, Mohan
View ArticleSQL Query Tunning - response (2) by m.kothapally@gmail.com
Dear all, Please look at below mentioned issue , this query was runing very long time nearly 545 hours, I did proper tuning like collect stats and seconday index creation as per required columns .now...
View ArticleHow to use TPT for loading all the fields of a file in a single column in a...
I have multiple files to be loaded into a table using tptload. Scenario is, i have two columns in my table (one is varchar(100) and another is varchar(50000)). In the first column, i want the name of...
View Articleto_char function in stored procedure - response (8) by DS
VandeBergB, I tried by qualifing with TD_SYSFNLIB. Doesn't worked.
View Article