$ 0 0 hi,CREATE TABLE [dbo].[T2]( [A1] [bigint] NULL, [D1] [bigint] NULL) ON [PRIMARY]SELECT d1,COUNT(a1) a FROM t2GROUP BY d1yours sincelrey