Hi all.
I want to do a select in MySql that combines several columns... something like this pseudocode:
select payment1_paid and payment2_paid as paid_in_full from denormalized_payments where payment1_type = 'check';
Edit: payment1_paid and payment2_paid are booleans.
I can't use any other language for this particular problem than MySql.
Thanks for any help!
Edit: Sorry to everybody who gave me suggestions for summing and concatenating, but I've voted those early answers up because they're useful anyway. And thanks to everybody for your incredibly quick answers!