Hi,I have a tableserverName, dateStamp, commentserverA 10-11-2008 a comment aserverA 11-11-2008 a comment bserverA 12-11-2008 a comment cserverB 10-11-2008 a comment dserverB 11-11-2008 a comment eserverB 12-11-2008 a comment fserverC 10-11-2008 a comment gserverC 11-11-2008 a comment hserverC 12-11-2008 a comment i
I want to return the latest comment for each distinct servere.g.serverA 12-11-2008 a comment cserverB 12-11-2008 a comment fserverC 12-11-2008 a comment i
I can use SELECT DISTINCT MAX(dateStamp) AS dateStamp, serverName FROM myTable GROUP BY serverName
That gets me serverA 12-11-2008 serverB 12-11-2008 serverC 12-11-2008
How do I get the latest comment for each distinct server?Cheers Dave