我有这么个存储过程 会查出5条记录 我想把这5条记录查询写到一条记录里面怎么做才行
CREATE PROCEDURE Proc_User_test
(
@UserID nvarchar(50)
)AS
/* SET NOCOUNT ON */
select UserMoney,GameMoney as 'UsefulMoney' 
from userinfo where userID=@UserID

select sum(Realised) as 'Realised' from ClearnTran where userID=@UserID

declare @bors as bit;
set @bors=(select top 1 IsBuy from UserGoodsInfo where UserID=@UserID)

declare @pprice as money;
set @pprice=(select case @bors when '1' then GoodPrice2 else GoodPrice1 end from Goods where [ID]=1)

declare @fee as money;
set @fee=(select FeeRate_1 from SystemInfo WHERE [ID] = 1)

declare @unit int;
set @unit=(SELECT Unit FROM SystemInfo WHERE [ID] = 1)

declare @uninterest as numeric(18,4);
    if(@bors=1)
    begin
set @uninterest=(select InterestB from SystemInfo where [ID]=1)
    end
else
    begin
set @uninterest=(select InterestS from SystemInfo where [ID]=1)
    end

declare @fu as money;
set @fu=@fee*@unit;

declare @sc as int;
set @sc=(select sum(BuyAmount-HasClear) from UserGoodsInfo where UserID=@UserID)

declare @ac as int;
set @ac=(select sum(BuyAmount) from UserGoodsInfo where UserID=@UserID) declare @fees as money; --未平仓的手续费
set @fees=(select @sc*@fu)

declare @un1 as money;
set @un1=(select sum(case @bors when 1 then (@pprice-BuyPrice)*(BuyAmount-HasClear)*@unit else (BuyPrice-@pprice)*(BuyAmount-HasClear)*@unit end)
from UserGoodsInfo where UserID=@UserID);
    
   -- declare @un2 as money;
   -- set @un2=(select sum(Imoney) as 'Interest' from Interest where TranId  in 
   -- (select BuyID from UserGoodsInfo where UserID=@UserID));
    
    --set @un2=(select sum(case @bors when 1 then (-1)*BuyPrice*(BuyAmount-HasClear)*@unit*@uninterest/365 else BuyPrice*(BuyAmount-HasClear)*@unit*@uninterest/365 end) as 'interest'
--from UserGoodsInfo where UserID=@userID);

--select @un1+@un2-@fees as 'unrealised'
select @un1-2*@fees as 'unrealised'

--select @un2 as 'interest';
select isnull(Interest,0) as 'interest',isnull(InterestS,0) as 'interestS' from UserInfo where UserID=@userID;

select @bors as 'type',@unit as 'unit',sum((BuyAmount-HasClear)*BuyPrice*@unit) as 'Kmoney', sum(BuyAmount-HasClear) as 'amount',2*@fees as 'fee',@fee as 'feerate'
    from UserGoodsInfo where UserID=@userID;