mysql - Trying to found a query with 4 conditions -
this tried:
select count(*) jos_rsform_submission_values (fieldname = 'resa agapes' , fieldvalue = 'oui') , (fieldname = 'validation paiement agapes' , fieldvalue = 'non')
but it's not working well.
in fact, need count how many line have resa agapes = oui + validation paiement agapes=non
this might on right track. assumes have id column of name or other. if provide bit more info i'll try polish up.
select count(id), fieldname, fieldvalue jos_rsform_submission_values group fieldname
Comments
Post a Comment