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 |
wided
Posting Yak Master
218 Posts |
Posted - 2010-10-19 : 11:44:53
|
I have a list of employees (exemple: 100 records)i want to select employees like this:20 recordsthen20 records nextthen 20 record next.....can i have this result with select?how to write this querythanks |
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-10-19 : 12:09:44
|
I think you should search for paging to find info like this:http://www.aspfaqs.com/webtech/062899-1.shtmlIf that isn't what you mean then be more specific please. No, you're never too old to Yak'n'Roll if you're too young to die. |
|
|
wided
Posting Yak Master
218 Posts |
Posted - 2010-10-19 : 12:22:42
|
yesif i have a table like thiscol1 col2001 A002 B003 C004 D005 E006 F007 G008 H009 I010 JI whant to have a result 2 by 2001 A002 BTHEN003 C004 DTHEN005 E006 FTHEN 007 G008 H......IT IS STUPID?But i need thisthanks webfred |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-10-19 : 14:10:40
|
where do you want to show this data? in some report?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
wided
Posting Yak Master
218 Posts |
Posted - 2010-10-20 : 03:41:01
|
yes, in some reportthanks |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-10-20 : 13:14:49
|
then you can even do pagination there------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
|
|
|