Stang70Fastback
Registered User.
- Local time
- Today, 02:18
- Joined
- Dec 24, 2012
- Messages
- 132
So I know you guys on here like to harp on everyone about proper database design and structure, so I'm sure there is someone who would love to answer this question.
I have a table which holds records for an employee's work day. As it stands right now, along with all of the other information, there are 5 fields (Duty 1, Duty 2, etc...) along with 5 corresponding fields for other information (Hours Worked 1, Overtime 1, etc...) All of these are in 1 record.
I started working on a report design that would tell us how many hours of each type of Duty would work (the Duty category is a drop-down.) I'm sure I can extract the relevant data from each record, but I'm starting to wonder whether the "proper" way to design the table would be so that each Duty is entered as its own record. So rather than the instructor having ONE record listing multiple duties for each day, they might have multiple daily records if they did more than one thing. However then you start getting into duplicating the other data, so now I'm thinking maybe I need two tables with some sort of (one to many?) relationship... or maybe the way I had it set up originally was okay.
Does anyone have any insight on this? I don't want to get too far on building things out if I'm going to have to go back and change the basic structure. Is what I'm doing currently (listing multiple tasks in one record that I might want to query separately) the completely wrong way to do it? (Probably.)
I have a table which holds records for an employee's work day. As it stands right now, along with all of the other information, there are 5 fields (Duty 1, Duty 2, etc...) along with 5 corresponding fields for other information (Hours Worked 1, Overtime 1, etc...) All of these are in 1 record.
I started working on a report design that would tell us how many hours of each type of Duty would work (the Duty category is a drop-down.) I'm sure I can extract the relevant data from each record, but I'm starting to wonder whether the "proper" way to design the table would be so that each Duty is entered as its own record. So rather than the instructor having ONE record listing multiple duties for each day, they might have multiple daily records if they did more than one thing. However then you start getting into duplicating the other data, so now I'm thinking maybe I need two tables with some sort of (one to many?) relationship... or maybe the way I had it set up originally was okay.
Does anyone have any insight on this? I don't want to get too far on building things out if I'm going to have to go back and change the basic structure. Is what I'm doing currently (listing multiple tasks in one record that I might want to query separately) the completely wrong way to do it? (Probably.)