Groups | Blog | Home
all groups > sql server clients > june 2004 >

sql server clients : Select TOP i TO n records...



Anith Sen
6/30/2004 9:22:21 AM
Chris Pratt
6/30/2004 11:44:09 AM
As an extension to the SELECT TOP n ... function, is there a way to select
records between a range, ie. SELECT TOP 5 TO 15 ...?

Thanks for any help,

Chris.

Noor
6/30/2004 5:18:51 PM
Hello Chris..

for acheiving your task you have to use

Select * from table where uniqueid between 5 and 15. For top query you can
use like Select top 10 * from table Or select top 10 percent from tablename.

Thanks
Noor

[quoted text, click to view]

AddThis Social Bookmark Button