Subject | RE: [firebird-support] Select statement |
---|---|
Author | Svein Erling Tysvær |
Post date | 2012-10-19T06:32:03Z |
>>No need for three COALESCEs if you want to multiply:I know, Nols, if any of them are NULL, the result of multiplying them are NULL. So the one coalesce above is identical to the three coalesces that you used.
>>and coalesce(p.total_revenue*p.exchange_rate*p.cgsshare_pct,0) = 0))
>There are cases where these variables may have null values.
HTH,
Set