Afficher un message
Vieux 04/10/2007, 04h30   #11
Ed Murphy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: time conversion hiccup

tatata9999@gmail.com wrote:

> SUM(CASE WHEN (datediff(n,start,stop)/60 > 0)
> THEN (datediff(n,start,stop)/60) End) as
> total_hours
> returned summary/calculated about right, but it's at hour level, so,
> 0.45 minutes would be discarded, not very good


CASTing datediff() to some appropriate DECIMAL type should take
care of it.
  Réponse avec citation
 
Page generated in 0,04370 seconds with 9 queries