I am currently working on my first real database project. Since this is my first, I am bit confused on the best way to approach my problem.
I currently have 3 tables that should store and total production annually. The format is:
(Table Capital) Paid_To | sYear | sJanuary | sFebruary | sMarch...
(Table Advisors) Paid_To | sYear | sJanuary | sFebruary | sMarch...
(Table Corporation) Paid_To | sYear | sJanuary | sFebruary | sMarch...
*year field is the year and not the actual total
*actual total is being genereated using SQL
I want to create a query that adds up total production (Capital production + Corporation Production + advisor Production) monthly and annually based on the existing tables. It should be availabe for the given time period for each Paid_to field. (List how much was paid to each person for the given months)
I imagine I could do this by using various arrays (I often end up doing that) but I think that an actual SQL solution would probably be much better. I don't know if I should use a join, or what join to use.
The closest think I could think about using was an outer join and that I couldn't get that to work. I realized that I was following the SQL advice for SQL Server and I am using access. That might have been part of the problem.
I'm pretty stumped and looking for solutions!
Thanks,
Scott
I currently have 3 tables that should store and total production annually. The format is:
(Table Capital) Paid_To | sYear | sJanuary | sFebruary | sMarch...
(Table Advisors) Paid_To | sYear | sJanuary | sFebruary | sMarch...
(Table Corporation) Paid_To | sYear | sJanuary | sFebruary | sMarch...
*year field is the year and not the actual total
*actual total is being genereated using SQL
I want to create a query that adds up total production (Capital production + Corporation Production + advisor Production) monthly and annually based on the existing tables. It should be availabe for the given time period for each Paid_to field. (List how much was paid to each person for the given months)
I imagine I could do this by using various arrays (I often end up doing that) but I think that an actual SQL solution would probably be much better. I don't know if I should use a join, or what join to use.
The closest think I could think about using was an outer join and that I couldn't get that to work. I realized that I was following the SQL advice for SQL Server and I am using access. That might have been part of the problem.
I'm pretty stumped and looking for solutions!
Thanks,
Scott