Menu
I’ve got a MySQL query. I have a column in table A which has either 1 or 2 as it’s value (always).
My query JOINS a second table. I need to get the value from column X or Z from this table.
This is decided on my 1 or 2 from table A. If it’s 1, then get the value from column X if 2 then Z.
Can this be done?