This is the sequel to this question.
I would like to combine three columns into one on a MySql select. The first two columns are boolean and the third is a string, which is sometimes null. This causes strange results:
Select *, (payment1_paid && ((payment2_paid || payment2_type ="none"))) as paid_in_full from payments
Note: payment1_paid
is boolean, payment2_paid
is boolean, payment2_type
is varchar.
Note: Please ignore how ridiculous the structure of this table is. Behind every piece of bad code there is a long explanation :)
Edit: Null is not interesting to me for the varchar value. I only want to know if it's really "none."
Thanks in advance for your help!