Skip to content
Advertisement

How to count each value with the same id in sql

I have a table like this

How can I get the count of all values with Poll_id = 1 so I can get

using sql

Advertisement

Answer

Use group by with where:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement