在SQL Server2008中数据库中,假设订单表orders用来存储订单信息,cid代表客房编号,money代表订购金额,现要查询每个客房订购次数和订购总金额,下面哪个查询语句可以返回正确结果
A.
select cid,count(money),sum(ciD) from orders group by cid
B.
select cid,count(money),sum(ciD) from orders order by cid
C.
select cid,count(ciD) ,sum(money) from orders order by cid
D.
select cid,count(ciD) ,sum(money) from orders group by cid