Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server select syntax
Message
 
 
To
28/06/2005 15:48:53
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01027150
Message ID:
01027199
Views:
21
>Does SQL Server have anything like VFP's IIF where I can check if the user leaves the judgecode blank and I would add the following in VFP
>"where IIF(!EMPTY(parameter),judgecode=parameter,!empty(judgecode))"

See CASE function in BOL. You don't have to do things in SQL the same way as you do in VFP. In fact, you shouldn't because T-SQL has its own ways to do things. Can you explain what that convoluted expression/condition suppouse to do?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform