Hi guys,
I have some questions about my data base, and I will be very glad if someone can help me.
So the deal is like that – I have a bunch of tables which records information about payments, and the tables are totally the same, but they are recording information about different type of clients. Every payment in the tables has a date, and at the end of the month I have made a date range query which shows me the sum of payments for every client for the date range which I put. So there is no problem with the separated tables, but now I have to make a query that returns the sum of payments for all the customers from the bunch of tables and it has to be date range query too.
The real problem is that every separated table has date fields for the payments, and I don’t know how to combine them in one column so I can use this column for my date range query. I need to build some expression which looks up the values from all the different tables and use that column in my query for my date range(just think this will work) or I need to perform a total change to the data base which I am working on for the last 2 months and consist more then 200 objects L
My query , which returns the sum of payments of all clients looks like this:
qry SumOfPaymentsBeginners qrySumOfPaymentsAdvanced
FullName FullName
SumOfPaymentsBeginners SumOfPaymentsAdvanced
MaxDate MaxDate
SumOfPaymentsBeginners / SumOfPaymentsAdvanced / …..and so on…. / Date? /
I have some questions about my data base, and I will be very glad if someone can help me.
So the deal is like that – I have a bunch of tables which records information about payments, and the tables are totally the same, but they are recording information about different type of clients. Every payment in the tables has a date, and at the end of the month I have made a date range query which shows me the sum of payments for every client for the date range which I put. So there is no problem with the separated tables, but now I have to make a query that returns the sum of payments for all the customers from the bunch of tables and it has to be date range query too.
The real problem is that every separated table has date fields for the payments, and I don’t know how to combine them in one column so I can use this column for my date range query. I need to build some expression which looks up the values from all the different tables and use that column in my query for my date range(just think this will work) or I need to perform a total change to the data base which I am working on for the last 2 months and consist more then 200 objects L
My query , which returns the sum of payments of all clients looks like this:
TABLES(queries)
FullName FullName
SumOfPaymentsBeginners SumOfPaymentsAdvanced
MaxDate MaxDate
Query