If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > converting minutes to seconds in query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-14-02, 09:23
akozenler akozenler is offline
Registered User
 
Join Date: Jun 2002
Posts: 8
converting minutes to seconds in query

Hi I have a column containing time in 00:00 format .I want to take a report but i have to convert it in seconds.Can you help me?
Reply With Quote
  #2 (permalink)  
Old 06-14-02, 19:06
alligatorsql.com alligatorsql.com is offline
Registered User
 
Join Date: Jul 2001
Location: Germany
Posts: 189
Talking

Hello,

what about

select to_number(to_char(field, 'HH24'))*60*60+(to_number(to_char(field, 'MI')*60)) from table ?????

Hope that helps ?

Regards
Manfred Peter
(Alligator Company)
http://www.alligatorsql.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On