MySQL equivalent of Excel's COUNTIF() function

Practice




analog of COUNTIF ( ) ms EXCEL in MySQL
select
SUM(IF( condition #1 ,1,0))

from table
where condition #2
groupe by which fields to determine as one number



the function determines the number of values that satisfy the condition

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Databases - MySql (Maria DB)"

Terms: Databases - MySql (Maria DB)