Subject Re: [firebird-support] SELECT FIRST N BY GROUP
Author Dimitry Sibiryakov
07.08.2019 14:26, pgore@... [firebird-support] wrote:
> Is this possible in a single SELECT query

I would try WHERE ROW_NUMBER() OVER (PARTITION BY empid, ORDER BY effdate) <= 2.


--
WBR, SD.