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 |
|
amirs
Constraint Violating Yak Guru
260 Posts |
Posted - 2009-04-06 : 08:51:13
|
| dear allin table there are 15 record. i have select a first 5 and last 5 record to maching a perticular row text in table.thanks in advance |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-04-06 : 09:13:12
|
Some sample data would be great. E 12°55'05.63"N 56°04'39.26" |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-04-06 : 09:22:36
|
| Search for PaginationMadhivananFailing to plan is Planning to fail |
 |
|
|
amirs
Constraint Violating Yak Guru
260 Posts |
Posted - 2009-04-06 : 23:30:20
|
| Sr No data1 ffdf2 dfsd3 df4 fsdf5 dfsdf6 dfsdf7 ddsf8 test9 fdsfd10 sdfsdf11 sdfdsf12 dfsdf13 dfsdf14 dfsd15 sdfsdfi have select top 5 records and bellow 5 records to matching "test" row |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-04-07 : 01:33:30
|
Tryselect top 5 * from table where [Sr No]<( select [Sr No] from table where data='test' ) order by [Sr No] descselect top 5 * from table where [Sr No]>( select [Sr No] from table where data='test' ) order by [Sr No] MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|