I have an INVENTORY table that has, among other columns, CATEGORY and UPDATED . Sorting a table by these columns is simple:
SELECT * FROM INVENTORY ORDER BY CATEGORY ASC, UPDATED ASC
I want to get a result set containing only the first 4 rows from each category. Any idea how to do this?
Orr siloni
source share