Viewing 4 posts - 1 through 4 (of 4 total)
Select * from SomeTable
where SNO>=
(
Select MIN(RR.R) from
Select TOP 10 T.SNOS as R
FROM
(SELECT CNO, Min( SNO ) AS SNOS FROM SomeTable GROUP BY CNO ) T
ORDER BY T.SNOS ASC
) RR)...
December 6, 2007 at 4:24 am
#757601
Hey Ramesh,
Thanks a lot man. This exactly what i wanted.
December 6, 2007 at 2:01 am
#757570
what i am saying is my return value should be
63
46
56
... and so on
Thanks for ur help
December 5, 2007 at 10:06 pm
#757508
thanks for the help but the problem here is that the order is changing and thats something which i don;t want. Its like when do the query the values returned...
December 5, 2007 at 9:38 pm
#757504