/ Published in: MySQL
Expand |
Embed | Plain Text
SELECT SUBSTR(FIELD, 1 , LOCATE('/', FIELD, 8)-1)AS Domain, COUNT(1) AS Count FROM TABLE GROUP BY Domain ORDER BY Count DESC LIMIT 250;
You need to login to post a comment.
SELECT SUBSTR(FIELD, 1 , LOCATE('/', FIELD, 8)-1)AS Domain, COUNT(1) AS Count FROM TABLE GROUP BY Domain ORDER BY Count DESC LIMIT 250;
You need to login to post a comment.