SELECT dbo.MemberTransactionMaster.YearID, Month(dbo.MemberTransactionDetails.VoucherDate)as TMonth, SUM(dbo.MemberTransactionDetails.Credit) FROM dbo.MemberTransactionMaster INNER JOIN dbo.MemberTransactionDetails ON dbo.MemberTransactionMaster.TransactionMasterID = dbo.MemberTransactionDetails.TransactionMasterID WHERE dbo.MemberTransactionDetails.VoucherType='WC' GROUP BY dbo.MemberTransactionMaster.YearID,Month(dbo.MemberTransactionDetails.VoucherDate) Order by dbo.MemberTransactionMaster.YearID,Month(dbo.MemberTransactionDetails.VoucherDate)
SELECT SUM(dbo.MemberTransactionDetails.Debit) FROM dbo.MemberTransactionMaster INNER JOIN dbo.MemberTransactionDetails ON dbo.MemberTransactionMaster.TransactionMasterID = dbo.MemberTransactionDetails.TransactionMasterID WHERE dbo.MemberTransactionDetails.VoucherType='WW'
VoucherType in ('WW','WC')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)