M
Michael Wong
Hi,
I want to consolidate multiple table into one unique query, but have some
difficulties with the query...
I would like a query that returns the following results:
- DailyDate (whenever there is a date in one of the tables)
- SumOfJournalAmount (for the given date)
- SumOfPaidInvoice (for the given date)
- SumOfOtherTables
The tables are (simplified):
TCashierJournal (CashierJournalID [PK], JournalDate, CashierId, Amount)
TPaidInvoice (PaidInvoiceId [PK], PaidDate, InvoiceNo, Amount)
And other table with a date and Amount.
The difficulty I have is for the date which might have in one table but not
the other.
Any suggestion would be much appreciated.
Thank you.
Michael
I want to consolidate multiple table into one unique query, but have some
difficulties with the query...
I would like a query that returns the following results:
- DailyDate (whenever there is a date in one of the tables)
- SumOfJournalAmount (for the given date)
- SumOfPaidInvoice (for the given date)
- SumOfOtherTables
The tables are (simplified):
TCashierJournal (CashierJournalID [PK], JournalDate, CashierId, Amount)
TPaidInvoice (PaidInvoiceId [PK], PaidDate, InvoiceNo, Amount)
And other table with a date and Amount.
The difficulty I have is for the date which might have in one table but not
the other.
Any suggestion would be much appreciated.
Thank you.
Michael