I have a MySQL query where I would like it to have a pseudo column returned which is based off of:
- If columnW does not equal 0, it should be 1 BUT
- If columnX does not equal 0, it should be 2 BUT
- If columnY does not equal 0, it should be 3 BUT
- If columnZ does not equal 0, it should be 4
Hopefully that makes sense. My SQL isn't good enough to wrap my head around this.