A
alex
Hello everyone,
I’m basically looking for an opinion(s), which maybe difficult to
give…
I have a database that collects an employee’s time and action.
My main table has only a few fields and I hope is well normalized.
It contains the following fields: UserID (key); GroupID (key), Hours,
Count, ActionID (key), TimeID (key), TimeStamp (key).
Translated: UserN, worked in Group A, for 3 hours, built 8, widgets,
on overtime, on Jan 02, 2009.
That same user (UserN) could have another record exactly the same as
the one above except he/she built the widgets on regular time.
That same user (UserN) could have a third record exactly the same as
the one above except he/she worked in GroupB.
The aforementioned configuration seemed to work fine during testing
(notice the five key combination). What the table lacked, I thought,
was its own primary key, which I added (auto num field). What this
now allowed, however, is duplicate information in my table. E.g.,
1 (tblKey),UserN, worked in Group A, for 3 hours, built 8, widgets, on
overtime, on Jan 02, 2009.
2 (tblKey), UserN, worked in Group A, for 3 hours, built 8, widgets,
on overtime, on Jan 02, 2009.
My question, and I apologize it took me so long to get there:
Does my table appear normalized?
Does the table (a table) need its own key if it’s designed like the
one above?
Am I making any sense?
Thanks,
alex
I’m basically looking for an opinion(s), which maybe difficult to
give…
I have a database that collects an employee’s time and action.
My main table has only a few fields and I hope is well normalized.
It contains the following fields: UserID (key); GroupID (key), Hours,
Count, ActionID (key), TimeID (key), TimeStamp (key).
Translated: UserN, worked in Group A, for 3 hours, built 8, widgets,
on overtime, on Jan 02, 2009.
That same user (UserN) could have another record exactly the same as
the one above except he/she built the widgets on regular time.
That same user (UserN) could have a third record exactly the same as
the one above except he/she worked in GroupB.
The aforementioned configuration seemed to work fine during testing
(notice the five key combination). What the table lacked, I thought,
was its own primary key, which I added (auto num field). What this
now allowed, however, is duplicate information in my table. E.g.,
1 (tblKey),UserN, worked in Group A, for 3 hours, built 8, widgets, on
overtime, on Jan 02, 2009.
2 (tblKey), UserN, worked in Group A, for 3 hours, built 8, widgets,
on overtime, on Jan 02, 2009.
My question, and I apologize it took me so long to get there:
Does my table appear normalized?
Does the table (a table) need its own key if it’s designed like the
one above?
Am I making any sense?
Thanks,
alex