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

sreenshot table: enter image description here

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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -