Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Time calculation: type date or timestamp; how to calculate time in between?

Lorenz-OracleOct 30 2011 — edited Nov 3 2011
Dear experts,

I like to create a simple flightbook table: FLIGHTID, TAKEOFFTIME, LANDINGTIME.

1. First question:
I prefer to use UTC as timezone in the app.
Which datatype would be best to take?
date or timestamp?

2. Secound question:
I like to calculate the flighttime between TAKEOFFTIME, LANDINGTIME?
How do I do this best?
Add a column flighttime?
How do I calculate the flighttime between TAKEOFFTIME, LANDINGTIME?

Advice and tips are very welcome!

Kind regards
Lorenz
--
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2011
Added on Oct 30 2011
4 comments
165 views