In Access, a logical function called "iif()" exists. It follows the pattern iif(test,a,b). The test is a boolean test. If the test is true, the function returns a. Otherwise, it returns b.
The same thing exists in Excel, only its called "If()".
I tried to use this in SQL Server and got an error. What syntax should I use?
The same thing exists in Excel, only its called "If()".
I tried to use this in SQL Server and got an error. What syntax should I use?