Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
i have field that has char like S, L, and D what i wanted to do is if the feild has S so diplay Surplus if it has L so diplay Limit i used select Iif(BO01BOT.equal('S'), 'Surplus', Iif(BO01BOT.equal('D'), 'Deficite')) AS OutPut from tableName but it gives me an error iif is not recognized function
mde
Starting Member
10 Posts
Posted - 2005-01-17 : 05:28:19
If I understand your problem correct you would like to do like this.This code is written as an expression in a textbox: