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
1.4m articles
1.4m replys
5 comments
57.0k users