Hi everybody
Would you have a look at the following snippet of code.
SELECT n.ProviderID, n.SchemeID, Sum(Total)
FROM NormalPaymentSchedule n
INNER JOIN ClaimantDetailsTest c
ON c.ClaimantID = n.ClaimantID
WHERE n.Period = 1 AND n.YearNo = 1
GROUP BY n.ProviderID, n.SchemeID, c.ProtectedCase, c.PublicHB
I am trying to get two totals for each scheme, the normal total and the combined total for protected and public cases. However, I can only get it to give me separate totals for protected and public
Many Thanks John
Would you have a look at the following snippet of code.
SELECT n.ProviderID, n.SchemeID, Sum(Total)
FROM NormalPaymentSchedule n
INNER JOIN ClaimantDetailsTest c
ON c.ClaimantID = n.ClaimantID
WHERE n.Period = 1 AND n.YearNo = 1
GROUP BY n.ProviderID, n.SchemeID, c.ProtectedCase, c.PublicHB
I am trying to get two totals for each scheme, the normal total and the combined total for protected and public cases. However, I can only get it to give me separate totals for protected and public
Many Thanks John