hi,
i'm working with sql server 7 and i have a table like this:
---------------------
id date section
1 1/1/2001 2
2 2/2/2002 3
etcetera
---------------------
I need to get the 5 last items from every section, "last items" means order by date desc... I cannot find the sql expression... "5 last items from every section" means
that the sql should return 15 rows if i have 3 sections,
supossing there are 5 items available for every section.
Thanks for any help.
Abel
---------------------------
i'm working with sql server 7 and i have a table like this:
---------------------
id date section
1 1/1/2001 2
2 2/2/2002 3
etcetera
---------------------
I need to get the 5 last items from every section, "last items" means order by date desc... I cannot find the sql expression... "5 last items from every section" means
that the sql should return 15 rows if i have 3 sections,
supossing there are 5 items available for every section.
Thanks for any help.
Abel
---------------------------