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.
| Author |
Topic |
|
krishna_yess
Yak Posting Veteran
81 Posts |
Posted - 2009-06-15 : 05:33:34
|
| Hi all,what is the query to select rows n to mi mean for eg:i need to select rows from 10 to 20please someone help methanks |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-06-15 : 05:35:06
|
It's called pagination and there lot of examples here at SQLTeam. E 12°55'05.63"N 56°04'39.26" |
 |
|
|
krishna_yess
Yak Posting Veteran
81 Posts |
Posted - 2009-06-15 : 05:41:03
|
| actually n and m are not variables. i always use 10 to 20 in one query and 20 to 30 in another query. |
 |
|
|
krishna_yess
Yak Posting Veteran
81 Posts |
Posted - 2009-06-15 : 05:43:52
|
i think i got it..SELECT TOP 10 START AT 10NAME,EMP NOFROM TABLE But START AT is not there in sql server 2005, am i right? |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-06-15 : 05:52:22
|
Correct.Also there is no LIMIT, as there is in MySQL. E 12°55'05.63"N 56°04'39.26" |
 |
|
|
krishna_yess
Yak Posting Veteran
81 Posts |
Posted - 2009-06-15 : 06:02:25
|
| but how do i do that |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-06-15 : 06:05:33
|
http://www.lmgtfy.com/?q=site%3Asqlteam.com+efficient+pagination E 12°55'05.63"N 56°04'39.26" |
 |
|
|
Lumbago
Norsk Yak Master
3271 Posts |
Posted - 2009-06-15 : 10:09:34
|
OMG that site is totally a.w.e.s.o.m.e.!! - Lumbago |
 |
|
|
|
|
|