I have two tables, the first call question_tags_g3 and the second questions_g3. In the question_tags_g3 table the tag field contains programming languages and some are repeated many times, and when executing this statement:
select a.tag, count(a.tag) as contador, b.creation_date
from question_tags_g3 a, questions_g3 b
where a.id=b.id and
b.creation_date > '2009-01-01' and
creation_date < '2017-01-01'
group by b.creation_date, a.tag
order by contador desc limit 50;
take me out:
Javascript 204019
Javascript 199471
Javascript 196340
Javascript 195340
Javascript 193540
...
What should I modify so that the Javascript values do not repeat themselves and only the 50 most repeated languages appear to me?