Getting the structure right from the start

J

John Pierce

I want to be able to compare plan vs actual for this year and years past in a
sales database. Should all of this be in one table or should I put each year
in a separate table. If I put each year is a separate table how do I then
compare result by month for plan vs actual year or year?
 
J

John Vinson

I want to be able to compare plan vs actual for this year and years past in a
sales database. Should all of this be in one table or should I put each year
in a separate table. If I put each year is a separate table how do I then
compare result by month for plan vs actual year or year?

Certainly in one table - or perhaps two, one for plan and one for
actual. Storing data in tablenames (or fieldnames) is a Very Bad Idea.
Just have a Date/Time field containing the sale date; you can use
Queries to filter, sum, group by, etc. the year, or month or quarter
or week, as needed.


John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top