I've been trying research online on how to combine "If" statements into my query. Suppose I wanted to create a query such that I want to create a extra column called "HIGH_VALUE", and then include a if else statement such that "If Value = "A" > "B" then = "Value A", Else "value B" AS "HIGH_VALUE".
In MS Access, you use IIF(). It is a little unclear what logic you really want, but the idea is:
IIF()
IIF(A > B, "Value A", "Value B") as value
2.1m questions
2.1m answers
60 comments
57.0k users