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 > Rounding error....

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-05-03, 14:14
BEISKEN BEISKEN is offline
Registered User
 
Join Date: Apr 2003
Posts: 15
Angry Rounding error....

Hello,

I am trying to get a sum of hours from seconds, however it's rounding the result, how can I get it to not round?

example:

TABLE1

ID, Seconds, Job

Select sum(Seconds) as TimeInHours, Job from TABLE1

Group by Job

Thanks,

Ken
Reply With Quote
  #2 (permalink)  
Old 08-05-03, 14:43
BEISKEN BEISKEN is offline
Registered User
 
Join Date: Apr 2003
Posts: 15
I found the answer....

/ 60.0 /60.0
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