G
Guest
I'm trying to write the following:
SELECT Funding.COBDate, Funding.Dept, Funding.InstrumentID,
Funding.Description, PL.LBPosition, Inventory.MaturityDate, PL.[Diff PandL
(USD)], Funding.CRInterest, Sum(Funding.FundingUSD) AS SumOfFundingUSD
FROM (Funding INNER JOIN Inventory ON Funding.InstrumentID =
Inventory.[Instrument Id]) INNER JOIN PL ON Funding.InstrumentID =
PL.InstrumentId
GROUP BY Funding.COBDate, Funding.Dept, Funding.InstrumentID,
Funding.Description, PL.LBPosition, Inventory.MaturityDate, PL.[Diff PandL
(USD)], Funding.CRInterest;
The output works but the Sum(funding) part still does not give me the total
sum per instrumentId. Can anyone assist?
SELECT Funding.COBDate, Funding.Dept, Funding.InstrumentID,
Funding.Description, PL.LBPosition, Inventory.MaturityDate, PL.[Diff PandL
(USD)], Funding.CRInterest, Sum(Funding.FundingUSD) AS SumOfFundingUSD
FROM (Funding INNER JOIN Inventory ON Funding.InstrumentID =
Inventory.[Instrument Id]) INNER JOIN PL ON Funding.InstrumentID =
PL.InstrumentId
GROUP BY Funding.COBDate, Funding.Dept, Funding.InstrumentID,
Funding.Description, PL.LBPosition, Inventory.MaturityDate, PL.[Diff PandL
(USD)], Funding.CRInterest;
The output works but the Sum(funding) part still does not give me the total
sum per instrumentId. Can anyone assist?