troubleshooting Question

Day light Off Set Time Calculation

Avatar of Nagi2288
Nagi2288Flag for United States of America asked on
Oracle DatabaseDatabases
4 Comments1 Solution517 ViewsLast Modified:
target database : Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
TimeZone :  US Central

I have a source data base (which is in Universal Time Zone ) from which i extract data and put in a oracle database(central time zone) . The problem that i have is when ever i extract something and put in the warehouse i have to subtract created date in the source table either 5hrs or 6hrs based on the off set time. This can be easily achieved by simply selecting the
[b]SELECT abs(TO_NUMBER(TO_CHAR(systimestamp,'TZH')))  FROM DUAL;[/b]

Open in new window


insert into target_table 
select create_date - offset_time/24 from source_table ;

Open in new window


however how do i have to handle the off time if i have to go back in history to populate the data in to my target table from source table with out hard coding the offset time.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros