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 |
|
taruny
Starting Member
1 Post |
Posted - 2008-05-29 : 10:43:39
|
| col1 col2 col31 IN NULL2 FOR 13 Small 44 World 15 Hj 16 NJ 17 Welcome 18 So 49 We 110 Are 111 Resp 312 OIJIOJPOJPJO 713 OIJOIJ 114 LKJ 215 IJ 1Is there any way, to query the above table which returns me all the 1's inside col3 until it finds any other number than 1 + the previous row preceding the 1for eg., my 1st set would be 1 IN NULL2 FOR 12nd set would look something like this3 Small 44 World 15 Hj 16 NJ 17 Welcome 13rd set8 So 49 We 110 Are 14th Set12 OIJIOJPOJPJO 713 OIJOIJ 1and the last set14 LKJ 215 IJ 1Any help is appreciated!! |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-05-29 : 12:10:03
|
| And how do you want to display the sets? |
 |
|
|
|
|
|