我在 SQL Server 2008 中有如下输出。
select ItemCode,
case when trntype = 'Issued' then sum(qty) end as issuedqty,
case  when trntype = 'Received' then sum(qty) end as receievedqty
from  [View_New]
group by ItemCode,trntype
Order by itemcode 
Code            Recd Qty   Issued Qty
--------------------------------------
10CMSQURSET     NULL       2.0000
10CMSQURSET     56.0000    NULL
我将如何将这些行显示为一行:
Code            Recd Qty   Issued Qty
--------------------------------------
10CMSQURSET 56.0000     2.0000
请帮忙