EXPLAIN SELECT t2.dbid, t2.tag, COUNT(t2.dbid) * 20 AS match_count FROM tags AS t1, tags AS t2 WHERE t1.dbid = '105318' AND t2.tag = t1.tag AND t1.dbid != t2.dbid GROUP BY t2.dbid ORDER BY match_count;
You need to create an account or log in to post comments to this site.