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 |
|
obsoletedude
Starting Member
31 Posts |
Posted - 2009-05-12 : 10:52:54
|
| I have a table with the following two columns:ClientID, ClientNoIn it would be a value structure like:1 12 23 24 25 36 37 4What I need to do is get the top ClientID from the disctinct ClientNo, so my results would be:1 12 25 36 4Any ideas would be very helpful.Thank you. |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-05-12 : 10:55:17
|
| select min(ClientId) as ClientId, ClientNo from your_tableGroup by ClientNoMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|