sql server分组查询数据!!

左边查到的数据想显示成右边的格式怎么写??
想查询成这种格式
急啊!!!

select top 1 child as c, epc_name from tablename
group by child

温馨提示:答案为网友推荐,仅供参考
相似回答