Database: MySQL columns: city, create2 (Timestamp)
I have this query:
SELECT city ,COUNT(city)
FROM content
WHERE create2 > DATE_SUB( NOW(), INTERVAL 7 DAY) '
GROUP BY city
ORDER BY COUNT(city) DESC
Now i want to get the ranked position from a city, but i didn't found a solution. Like this:
SELECT city ,COUNT(city)
FROM content
WHERE create2 > DATE_SUB( NOW(), INTERVAL 7 DAY)
GROUP BY city
ORDER BY COUNT(city) DESC
WHERE city= Berlin