Subject | Re: view porting problem |
---|---|
Author | Fikret Hasovic |
Post date | 2004-01-23T12:06Z |
Hi Arno.
My fault ;) I see now.
Fikret Hasovic
TAMP R&D Team
> Aha, i oversee the fact that your output field in the case wasdifferent
> from it's check. All your outputs are a timestamp except the ELSEand that's
> why the engine complains ;-) A 0 (zero) cannot be converted to atimestamp
> thus you must consider a timestamp datatype as result for the else.For
My fault ;) I see now.
> example :Thank You!
>
> (CASE
> WHEN COALESCE(EC_UsrID, 0) <> 0 THEN EC_UsrTS
> WHEN COALESCE(KV_UsrID, 0) <> 0 THEN KV_UsrTS
> WHEN COALESCE(OE_UsrID, 0) <> 0 THEN OE_UsrTS
> WHEN COALESCE(MD_UsrID, 0) <> 0 THEN MD_UsrTS
> ELSE NULL
> END) as StatusTS
>
>Best regards
> Regards,
> Arno Brinkman
> ABVisie
Fikret Hasovic
TAMP R&D Team