P
P
profseo20122016-02-23 15:58:49
PHP
profseo2012, 2016-02-23 15:58:49

How can you count the number of elements given a condition?

Good afternoon!
The essence of the question is this.
How can you calculate the number of elements under this condition.
There is a group or, as it is correct, an array of values:
Parameter 1
- Blue
- White
- Red
How can you calculate the number of each parameter in the table, provided that it is valid id = 5.
Maybe I didn’t write it correctly, but I think the essence is clear.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2016-02-23
@unitby

Not quite clear.
allows you to count the number of occurrences by parameters.
if you add where, then you can still filter
that in your case the condition is not clear

R
Roman Mirilaczvili, 2016-02-23
@2ord

MySQL IF Function ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question