I have not used access before but I have to convert an access query into SQL so I can write a report in crystal.
The query currently uses the IFF function in its select statement which appears to determine what value will be returned depending on the table’s value for a particular column.
So for instance if the value is “CR” it should be returned as “credit” and if it’s “NCR” it should be returned as “non-credit”
Can I do something like this in SQL?
Use a CASE expression.