Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF equalent in T-SQL
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01639189
Message ID:
01639190
Views:
90
>Hi All,
>
>how can i use this line Iif(Empty(thisform.txtID.Value),'.t.','CrsTable.ID=thisform.txtID.value') in T-Sql where clause?
>
>Thanks

Solved myself :)

WHERE vw_CrsStokhb.fiskodu = CASE WHEN @fiskodu is not null then @fiskodu ELSE vw_CrsStokhb.fiskodu END
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform