【正文】
le_id)/*USE pubsGODECLARE id int, indid intSET id = OBJECT_ID(39。order by 進(jìn)貨價ASC第二題創(chuàng)建一個新表名為::商品名稱,總金額,返回的結(jié)果集行的百分比為create table 總金額表( 商品名稱varchar(20) not null, 總金額money not null)select top 50 percent * from 總金額表第三題匯總各部門的員工人數(shù)declare bumen nvarchar(16)select bumen= 部門from Employeesset bumen=(select 部門from Employees )select count(編號),部門from Employees group by 部門第四題顯示如下結(jié)果,應(yīng)該如何實(shí)現(xiàn)select 部門,性別,count(性別) 員工人數(shù)from Employees group by 部門,性別第五題分別顯示如下結(jié)果,應(yīng)如何實(shí)現(xiàn)select 部門,性別,count(性別) 員工人數(shù)from Employees group by 部門,性別with cubeselect 部門,性別,count(性別) 員工人數(shù)from Employe