SELECt Group, ColorFROM MyTable tINNER JOIN (SELECt Group, Max(CAST(Count as int)) as Ct FROM MyTable GROUP BY Group) Sub ON sub.group = t.group AND sub.ct = t.count
GROUP或
COUNT。它们是关键字,将导致头痛和令人伤心。
欢迎分享,转载请注明来源:内存溢出
SELECt Group, ColorFROM MyTable tINNER JOIN (SELECt Group, Max(CAST(Count as int)) as Ct FROM MyTable GROUP BY Group) Sub ON sub.group = t.group AND sub.ct = t.count
GROUP或
COUNT。它们是关键字,将导致头痛和令人伤心。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)