Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Rownum

Author  Topic 

herbjorn
Starting Member

8 Posts

Posted - 2005-03-07 : 10:07:17
Hi,

I'm trying to achieve something like this:

SELECT * FROM MyTable
WHERE rownum BETWEEN 100 AND 200

Without using a temptable or table variable.

Can this be done?

Herbjorn

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2005-03-07 : 10:49:02
There's been a lot of topics and articles on this topic. Do some forum searches on "Row Number" and "Paging"

Be One with the Optimizer
TG
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2005-03-07 : 14:05:56
Are all the Oracle people jumping ship?



Brett

8-)
Go to Top of Page
   

- Advertisement -