I have 2 queries (one for debit records other for credit records)that I need to put into 1 so I can build a report.
1st query has these columns:
Date
KIO Order number
Sum total
2nd query has these columns:
Date
KPO Order number
Sum total
I need to put them into one query that would work like this:
My problem is that first table and second table has no relationship with a third table that would have common data field like date that would be entered using lookup? And that for a certain date one table can have no data like the blanks above.
Then I would build a report and do calculations there
1st query has these columns:
Date
KIO Order number
Sum total
2nd query has these columns:
Date
KPO Order number
Sum total
I need to put them into one query that would work like this:
PHP:
Date KPO Order Number KPO.Sum Toal KIO Order Number IO.SumToal
2008.01.01 001 100
2008.01.02 002 50 001 45
2008.01.03 002 114
2008.01.04 003 54
2008.01.10 004 30 003 100
My problem is that first table and second table has no relationship with a third table that would have common data field like date that would be entered using lookup? And that for a certain date one table can have no data like the blanks above.
Then I would build a report and do calculations there