A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Getting the structure right from the start



 
 
Thread Tools Display Modes
  #1  
Old December 5th, 2006, 04:29 AM posted to microsoft.public.access.tablesdbdesign
John Pierce
external usenet poster
 
Posts: 5
Default Getting the structure right from the start

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?
  #2  
Old December 5th, 2006, 05:09 AM posted to microsoft.public.access.tablesdbdesign
John Vinson
external usenet poster
 
Posts: 4,033
Default Getting the structure right from the start

On Mon, 4 Dec 2006 20:29:00 -0800, John Pierce
wrote:

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]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.