on ‎2022 Jan 12 2:53 PM
We got a new server and was looking over some SQL commands and the IIF seems to be easy to implement as it just compares values for a row level. Any siutation that would mmake sense in B1?
Request clarification before answering.
Hi Jonathan,
IIF function can simplify a query as you can avoid using a CASE expression. For example:
SELECT DocDueDate, IIF(DocDueDate<GETDATE(), 'OVERDUE', 'OK'), * FROM OINV
It checks the condition and returns the first value if the condition is true, and the second value if the condition is false.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 32 | |
| 16 | |
| 7 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.