vendredi 14 mai 2021

MySQL SUM(IF()) understanding

MYSQL SUM(IF())

For the above question, If I use only IF(), it gives id 1 as three different rows. I have got the expected by using SUM(IF()). But, here I am trying to understand the working of SUM(IF()). Can anyone help me understand how it works and why it won't work with IF()?

Aucun commentaire:

Enregistrer un commentaire