because in MSSQL 2000 does not support the ROW_NUMBER()
and LIMIT ... OFFSET ..
finally, i found this query :
SELECT slscod, MIN(slsname) slsname, MIN(brc) brc FROM (
SELECT top 30 slscod, MIN(slsname) slsname, MIN(brc) brc FROM
(
SELECT TOP (1*30) slscod, MIN(slsname) slsname, MIN(brc) brc
FROM td_casa group by slscod
ORDER BY slsname ASC
) AS t1 group by slscod
ORDER BY slsname DESC ) AS t2 group by slscod ORDER BY MIN(slsname) ASC
This is the same if in mysql :
select slscod,slsname,brc from td_casa group by slscod order by slsname limit 0,30
if you change TOP (2*30)
this is the same limit 30,30
. TOP (3*30)
this is the same limit 60,30
and so on.
desperate need of effort.
thanks all.let's cheers