View Single Post
  #2  
Old March 25th, 2010, 02:37 PM posted to microsoft.public.access.tablesdbdesign
XPS350
external usenet poster
 
Posts: 69
Default need good database structure for tracking counter state

On 25 mrt, 13:24, akioki wrote:
Dear,
Can anyone help me to make good database structure?

What i have are some locations where I have some machines. Every machines
have 2 counters (IN and OUT). I need to be able to enter state of that
counters and after that to compare that values with previous entry IN and OUT
counters.

How I see it seams that somewere I need to keep information wich machine is
on wich location. Beside that I need to track information about date and time
of entries.

Situation:

Location 1 - machine1, machine2, machine3
Location 2 - machine4
Location 3 - machine5, machine6, machine7, machine8
....

I need 3 kind of reports:
Â* Â* Â* Â* â—‹ Deference between new IN / OUT and Â*some old IN/OUT counters for every
machine
Â* Â* Â* Â* â—‹ Total IN/OUT for some location
Â* Â* Â* Â* â—‹ Total IN/OUT for all location

How I need to organize this datas?

Thanks for helping me,
akioki


It seems to me you need thre tables.

Location
- LocationID
- LocationName
..
..
..

Machine
- MachineID
- LocationID
..
..
..

MachineCounter
- MachineID
- Date (date/time?)
- IN
- OUT

Groeten,

Peter
http://access.xps350.com