Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql vfp 9 probleme
Message
From
29/04/2013 01:27:25
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Miscellaneous
Thread ID:
01570477
Message ID:
01572115
Views:
40
>hi boris,
>
>OK for the view .
>I have a good result.
>
>here is the laatst code.
>
>i have still a little problem.
>
>The cast claus is not good ...?
>
>i put CAST( Cor9.IetatId AS I ) AS IetatId and when i haven't no ETATS for R1
>i have vart( v_resident.ietatid ) = "X" ?????
>
>it must be 'N' ?
>
>please see the attachment
>
>
>bernhart

Instead of CAST use NVL() or both:
CAST( NVL(Cor9.IetatId, 0) AS I ) ...
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform