How can I write SQL query using IIf function in it?
For example, I would like to write something like this:
SELECT priceNetto, vat,
PriceBrutto:Ilf(Country="ABC", priceNetto*1.22, priceNetto)
but it won’t compile.
PriceBrutto is a dynamic column (there is no that column in query, but I would like to “build” this column programmatically like in my example).
You can use it like this: