Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL with iif()
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00802439
Message ID:
00802739
Views:
23
>Thanks Sergey,
>
>I'l give that a try. Is there any reason to avoid using iif() in the SQL? I just got in the habit of avoiding that for some reason.

Hi Cris,

I'm with you on this one. I prefer to use whatever options SELECT SQL provides first because Query Optimizer could better optimize query in this case. The second reason, I've had bad experience in using IIF() in WHERE clause when such condition produced totally unexpected and unexplained results.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform