CREATE TABLE [hello] (
[name] [char] (10) COLLATE Chinese_PRC_CI_AS NULL ,
[count] [int] NULL 
) ON [PRIMARY]
GO
select identity(int,1,1) as orderId,[name],[count],[count]/(count([count])) as countper into #temp from Hello group by [name],[count]