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 |
sebastian11c
Posting Yak Master
129 Posts |
Posted - 2013-09-25 : 16:55:26
|
hi there,, one more time i need your help.i have a query that returns a table something like thisvisit_number id fast strong1 12 5 72 12 4 93 12 6 3and i want to reduce to only one row with the max value from columns "fast" , "strong"id fast strong12 6 9i hope someone can help memany thanks in advanced |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2013-09-25 : 17:17:23
|
select id, max(fast) as fast, max(strong) as strongfrom yourtablegroup by idTara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
sebastian11c
Posting Yak Master
129 Posts |
Posted - 2013-09-25 : 17:26:01
|
thanks you tkizer |
|
|
|
|
|