Hi,
I have a query like below to select 'sid' with highest count and its 'lid'. Now I'd like to select details of 'lid' from another table and keep the 'tot' in the result set. Is that possible?
select count(distinct sid) as tot, lid
from wt_stats_linkclicks
where statsid IN (1)
GROUP BY lid order by tot DESC limit 1
Thanks!