Selecting Rows in groups
From: Shallotx (Shallotx_at_discussions.microsoft.com)
Date: 12/01/04
- Next message: Prabhat: "Re: Need Case Based Query for This Situation"
- Previous message: Aaron [SQL Server MVP]: "Re: datetim convertion to date"
- Next in thread: Aaron [SQL Server MVP]: "Re: Selecting Rows in groups"
- Reply: Aaron [SQL Server MVP]: "Re: Selecting Rows in groups"
- Reply: Roji. P. Thomas: "Re: Selecting Rows in groups"
- Reply: Alejandro Mesa: "RE: Selecting Rows in groups"
- Reply: Adam Machanic: "Re: Selecting Rows in groups"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 1 Dec 2004 06:47:08 -0800
I have seen a mumber of posts on this subject, but am still unsure as how to
implement.
In my Windows Forms application, I am dynamically building a query based on
criteria the user chooses. In the event that the query will return a larger
number of rows (say 100 for discussion purposes), I want to return the rows
in groups (say 10 for discussion purposes). I will then allow the user to
return subsequent groups of 10 records if they desire.
I understand I could write SELECT TOP 10 * FROM TABLE to return records
1-10, but how do I then retreive 11-20, 21-30 etc. In the old days I know I
could use Cursors, but I believe there are better ways.
Thank you
- Next message: Prabhat: "Re: Need Case Based Query for This Situation"
- Previous message: Aaron [SQL Server MVP]: "Re: datetim convertion to date"
- Next in thread: Aaron [SQL Server MVP]: "Re: Selecting Rows in groups"
- Reply: Aaron [SQL Server MVP]: "Re: Selecting Rows in groups"
- Reply: Roji. P. Thomas: "Re: Selecting Rows in groups"
- Reply: Alejandro Mesa: "RE: Selecting Rows in groups"
- Reply: Adam Machanic: "Re: Selecting Rows in groups"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|