我希望得到一个结果,它可以从&组中获得每组中的前N个数据。分类。我需要一份清单。
与mysql查询类似:
SELECT a.person, a.group, a.age FROM person AS a WHERE
(SELECT COUNT(*) FROM person AS b
WHERE b.group = a.group AND b.age >= a.age) <= 2
ORDER BY a.group ASC, a.age DESC
任何人都可以帮助我吗?多谢。