日期:2014-05-20 浏览次数:20852 次
SELECT Areate,ColorName,C FROM V AS A
WHERE C=(SELECT MAX(C) FROM V WHERE Areate=A.Areate )
var query= from A in db.V
where A.C==db.V.Where(x=>x.Areate==A.Areate).Select(x=>x.C).Max()
select new {A.Areate,A.ColorName,A.C};