Probeer deze zoekopdracht -
SELECT id, name, type
FROM (
SELECT t1.*, COUNT(*) cnt FROM table t1
LEFT JOIN table t2
ON t2.type = t1.type AND t2.id <= t1.id
GROUP BY
t1.type, t1.id
) t
WHERE cnt <= 10;
Probeer deze zoekopdracht -
SELECT id, name, type
FROM (
SELECT t1.*, COUNT(*) cnt FROM table t1
LEFT JOIN table t2
ON t2.type = t1.type AND t2.id <= t1.id
GROUP BY
t1.type, t1.id
) t
WHERE cnt <= 10;