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 |
gindaph
Starting Member
3 Posts |
Posted - 2013-04-09 : 05:42:28
|
Hi guys,I have one table belowTable1 NodeID CPUIndex1 01 11 22 02 12 22 32 4And I only want to get the Max CPUIndex for each of the Node, like the one belowNodeID CPUIndex 1 22 4TIA! |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-04-09 : 05:48:04
|
[code]SELECT NodeID,MAX(CPUIndex) AS CPUIndexFROM Table1GROUP BY NodeID[/code]------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
gindaph
Starting Member
3 Posts |
Posted - 2013-04-10 : 03:04:12
|
thanks sir!works like a charm |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-04-10 : 03:10:09
|
welcome------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|
|
|