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 |
itnagaraj
Yak Posting Veteran
70 Posts |
Posted - 2010-09-15 : 07:53:45
|
Hi,This is Sample DataIncident ID Response Time1130 1251130 2501140 25831140 2001140 3000Each Incident ID have more than one record.How to Select maximum Response time record onlyV.NAGARAJAN |
|
kunal.mehta
Yak Posting Veteran
83 Posts |
Posted - 2010-09-15 : 08:00:03
|
select incidentid,max(responsetime)from table1group by incidentid |
 |
|
Ancy
Starting Member
23 Posts |
Posted - 2010-09-15 : 08:11:20
|
If you want to select the maximum Response time for a particular Incident ID ----select [Incident ID], MAX([Response Time])from <table>group by [Incident ID]If you want to select the maximum Response time for the complete table----select MAX([Response Time])from <table> |
 |
|
|
|
|