Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with date/time

Status
Not open for further replies.

FORAND

Programmer
May 26, 2003
64
CA
hi

I have 2 sets of data :
Time of entry
Time of exit

Both data are varchar2(17), both data are something like this :
05/10/07 08:01:49
05/10/07 08:02:58

How can I find the time elapsed between "entry" and "exit"?

Thanks in advance

Forand

 
perhaps you could re-post this question in the forum for your particular dbms (oracle?)

you aren't going to like the ANSI SQL answer

:)

r937.com | rudy.ca
 
And I'd let this be a lesson in why it is a bad idea to store dates in a character datatype instead of a date datatype.

"NOTHING is more important in a database than integrity." ESquared
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top