Thanks Claire
I already found that I made too much parameter so while I create the procedure to joint the functions I made mistake in writing the parameter structure.
For Bertrand, here I made the sample of Joining parameter function in stored procedure as I mean
Exp. I have two functions:
ALTER FUNCTION CurrentTransaction(@Year smallint, @Month SmallInt)
AS
SELECT dbo.MyTransaction.Account, Sum(MyTransaction.Amount As CurMonth,
FROM dbo.MyTransaction
HAVING Year(Date) = @Year AND Month(Date) = @Month
GROUP BY dbo.MyTransaction.Account
ALTER FUNCTION CummulativeTransaction(@Year smallint, @Month SmallInt)
AS
SELECT dbo.MyTransaction.Account, Sum(MyTransaction.Amount As CumMonth,
FROM dbo.MyTransaction
HAVING Year(Date) = @Year AND Month(Date) <= @Month
GROUP BY dbo.MyTransaction.Account
The stored Procedure:
ALTER PROCEDURE ReportData(@Year Smallint, @Month Smallint)
AS
SELECT dbo.CurrentTransaction.Rekening, CurrentTransaction.CurMonth, dbo.CummulativeTransaction.CumMonth,
FROM dbo.CurrentTransaction(@Year, @Month) INNER JOINT
dbo.CummulativeTransaction(@Year, @Month) ON dbo.CurrentTransaction.Account = dbo.CummulativeTransaction.Account
Thanks for your attention too
Best Regards