From: Erland Sommarskog on
Glenn (nospam(a)yahoo.com) writes:
> Thanks. I gave this a try, but it still gave me the same results -
> multiple records for each stateID, not just the one that had the highest
> amount in the "Amount" column. Am I missing something?

Sorry, I got confused over the two instances of Delegates and forgot
the important part:

WHERE b.rowno = 1



--
Erland Sommarskog, SQL Server MVP, esquel(a)sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx