Cast and convert
From: Stefan Tchigik (mamouth3_at_libertysurf.fr)
Date: 03/09/04
- Next message: Viatcheslav V. Vassiliev: "Re: cannot update when open .csv jet.ole"
- Previous message: Anna Carlen: "ADO or DBExpress?"
- Next in thread: Rolf Hesterberg: "Re: Cast and convert"
- Reply: Rolf Hesterberg: "Re: Cast and convert"
- Reply: Vitali Kalinin: "Re: Cast and convert"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 9 Mar 2004 15:43:52 +0100
Hello alls,
I have a conversion problem with DateTime,
Select Sum( Cast(Cycle_F1 as Float)
+ Cast(Cycle_F2 as Float)
- Cast(Cycle_D2 as Float)
- Cast(Cycle_D1 as Float)
- Cast(Cycle_P1 as Float)
- Cast(Cycle_P2 as float)))
>From Cycle
Where
....
This statment do the sum of some DateTime fields...
But if ONE of thoses fields is null then the entire result is null.
I want that if any of thoses fields is null then those field should be added
has 0.... Anybody have an Idea ?
Thanks,
- Next message: Viatcheslav V. Vassiliev: "Re: cannot update when open .csv jet.ole"
- Previous message: Anna Carlen: "ADO or DBExpress?"
- Next in thread: Rolf Hesterberg: "Re: Cast and convert"
- Reply: Rolf Hesterberg: "Re: Cast and convert"
- Reply: Vitali Kalinin: "Re: Cast and convert"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|