I need to get the amount of users who have rank = player
So far I tried select count(*) as count_players from users where rank = player
I'm not sure where the error is, if only in the tags and query is correct or I'm going about it completely wrong, thanks in advance for the advice!
table: [users]
| id | username | password | rank |
|---|---|---|---|
| 1 | john | $2y$10$zYharAUmf36hVzkYUg87y.avY | player |
| 2 | jane | $2y$10$zYhajIUGU89887jhgUg87yKJ8G | admin |
COUNT_PLAYERS = 1