If you want the data where Project = 'a' and the UpdateDate is the latest then you need:
Code:
SELECT * from tb1 WHERE Project='a' and UpdateDate =
(SELECT MAX(UpdateDate) FROM tb1 WHERE Project = 'a');
Alternatively you could use a join instead of a subquery.
If that's not what you wanted then explain further.
--
Joe (
Microsoft MVP - XML)