How to SELECT first 'n' rows only from a table ?
From: sreckos (sreckos_at_discussions.microsoft.com)
Date: 09/21/04
- Next message: http://www.visual-basic-data-mining.net/forum: "Need SQL statement for data adapter that Uses 3 tables"
- Previous message: Tibor Karaszi: "Re: Difference in Query Result Using Left Outer Join"
- Next in thread: Alejandro Mesa: "RE: How to SELECT first 'n' rows only from a table ?"
- Reply: Alejandro Mesa: "RE: How to SELECT first 'n' rows only from a table ?"
- Reply: Tibor Karaszi: "Re: How to SELECT first 'n' rows only from a table ?"
- Reply: Aaron [SQL Server MVP]: "Re: How to SELECT first 'n' rows only from a table ?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 21 Sep 2004 05:23:03 -0700
I would need to get first 'n' rows from a table with a Select statement,
where 'n' is a given number - a constant.
My Select contains WHERE and ORDER BY clause.
Working with MS SQL Server 2000 database.
How to construct such a Select?
Is this even possible?
Any advices?
- Next message: http://www.visual-basic-data-mining.net/forum: "Need SQL statement for data adapter that Uses 3 tables"
- Previous message: Tibor Karaszi: "Re: Difference in Query Result Using Left Outer Join"
- Next in thread: Alejandro Mesa: "RE: How to SELECT first 'n' rows only from a table ?"
- Reply: Alejandro Mesa: "RE: How to SELECT first 'n' rows only from a table ?"
- Reply: Tibor Karaszi: "Re: How to SELECT first 'n' rows only from a table ?"
- Reply: Aaron [SQL Server MVP]: "Re: How to SELECT first 'n' rows only from a table ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|