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 |
|
surya_rakanta
Starting Member
19 Posts |
Posted - 2008-07-30 : 20:03:38
|
| Dear All,I have the sample data as follows :SeqNo Code1 AA2 AA3 AA4 BB5 CC6 DD7 AA8 AA9 CC10 CCIs it possible, using query to get :Code SeqNo(Max) SeqNo(Min)AA 3 1BB 1 1CC 5 5DD 6 6 AA 8 7CC 10 9Thanks for your insight and assistance.RgdsEka S. |
|
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts |
|
|
jsmith8858
Dr. Cross Join
7423 Posts |
|
|
surya_rakanta
Starting Member
19 Posts |
Posted - 2008-07-30 : 22:34:01
|
| It's impossible isn't it :)RgdsEka S.God didn't do this, Anna, WE did.— Robert Neville in I am Legend. |
 |
|
|
jsmith8858
Dr. Cross Join
7423 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-07-31 : 09:08:24
|
| Are you using sql 2005? |
 |
|
|
surya_rakanta
Starting Member
19 Posts |
Posted - 2008-07-31 : 20:50:55
|
| Are you using sql 2005?----Nope, SQL 2000. But solved in SQL 2005 will be fileTried the running-streak sample, problem is, the second group of code AA is get grouped to first AA.RgdsEka S.Here is a thing about the future : every time you look at it, it changes. Because you look at it, that changes everything else.-Frank Cadillac in NEXT |
 |
|
|
jsmith8858
Dr. Cross Join
7423 Posts |
Posted - 2008-07-31 : 22:00:49
|
quote: Originally posted by surya_rakanta Are you using sql 2005?----Nope, SQL 2000. But solved in SQL 2005 will be fileTried the running-streak sample, problem is, the second group of code AA is get grouped to first AA.
Then you didn't do it right ... your situation is exactly the same, make sure you followed the article closely. Also -- Post what you've tried.- Jeffhttp://weblogs.sqlteam.com/JeffS |
 |
|
|
|
|
|
|
|