with t as ( select tagname, count(*)c from posts p join p...

0

Please login or register to vote for this query.

(click on this box to dismiss)

elementary OS Meta

Q&A for developers and users of elementary OS and applications

with t as
(
select tagname, count(*)c
from posts p 
join posttags pt on p.id = pt.postid
join tags t on t.id = pt. tagid
where p.tags like '%mysql%' and t.tagname <> 'mysql'
group by tagname
)
select tagname from t where c = (select max(c) from t);

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results