How we can use timestamp with timezone in teradata(Eqv to from_tz in oracle)
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


How we can use timestamp with timezone in... Expand / Collapse
Author
Message
Posted 2/15/2008 7:23:57 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/25/2008 11:36:24 AM
Posts: 5, Visits: 22
Hi,

FROM_TZ function in Oracle converts a TIMESTAMP value (given a TIME ZONE) to a TIMESTAMP WITH TIME ZONE value.

In oracle

select from_tz(TIMESTAMP '2008-02-15 01:50:42', '-7:00')
from dual;

will return 15-FEB-08 01:50:42.000000000 AM GMT -07.00

I want to achieve same in TD.

I have tried following in TD

select cast('2005-09-11 13:20:53'||'+03:00' as timestamp with time zone format 'YYYY-MM-DDBHH:MI:SSDS(F)Z')

2005-09-11 13:20:53.000000+03:00

But i want same like in oracle.

Any suggestion will welcome.

Umesh
Post #10604
Posted 2/15/2008 7:49:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/16/2008 8:59:18 PM
Posts: 1, Visits: 2
Hi,
Even i also have almost same requirement.

Please let me know the solution to this.

Thanks,
Kabita
Post #10605
Posted 2/22/2008 12:07:18 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Today @ 7:20:23 AM
Posts: 533, Visits: 282
What do you mean by "same like in oracle"?

Exactly the same format? There's only UTC +/- time zone in Teradata, no GMT or EST.

Or something different? It looks like the same answer for me.

Dieter
Post #10675
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 4:01pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 3.016. 8 queries. Compression Disabled.