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 |
|
sona
Yak Posting Veteran
68 Posts |
Posted - 2001-12-20 : 04:52:49
|
| hai,I have a resultset like thisName Timea 12/1/01 12:00:00 Pmb 12/1/01 12:30:00 Pmc 12/1/01 12:00:00 Pma 12/1/01 12:30:00 Pmb 12/1/01 12:00:00 PmI want to get likea 12/1/01 12:30:00 Pmb 12/1/01 12:30:00 Pmc 12/1/01 12:00:00 Pmie Distinct Names with Greater timevalueThanks |
|
|
smccreadie
Aged Yak Warrior
505 Posts |
Posted - 2001-12-20 : 06:57:05
|
SELECT Name, MAX(Time)FROM tblnameGROUP BY Name |
 |
|
|
|
|
|