I am working on a Cash Book project in Wpf and want to generate report of cash paid for expenses. Every time on cash paid an expense head is assigned to it. And I have another table for these Expense Headings. Now I want to show daily cash expense report with separate expense heading.
CashBook Expense table :
- Date
- details
- previousBalance
- cashPaid
- closingBalance
- cashExpenseHead_ID (foreign key)
CashBookExpenseHeadings table :
- expenseHeadID
- expenseHeadName
I have almost 60 expense heads, can anyone help me in sql query for this scenario.
Thanks in advance.