Question : SQL Syntax for SELECT TOP 25 PERCENT, SELECT NEXT 35%, SELECT NEXT 15%, etc...

What's the most efficient way to do this. I know I can use

SELECT TOP 25 PERCENT * and then DELETE TOP 25 PERCENT * and then SELECT TOP 35 PERCENT * and so on.

Is there a more direct way? Thanks!

Answer : SQL Syntax for SELECT TOP 25 PERCENT, SELECT NEXT 35%, SELECT NEXT 15%, etc...

you can do this

select top :end percent * from mytable
minus
select top :start percent * from mytable

to find data between end & start (say %25 and %50)
Random Solutions  
 
programming4us programming4us