Table Design

G

Guest

I am working with an existing database designed by another developer. Within
the datbase there is a table to track hours worked on projects each day

The table was created as shown below

ID
ProjectID
UserID
WeekEndingDate
SunHrs
MonHrs
TueHrs
WedHrs
ThuHrs
FriHrs
SatHrs
....

Wouldn't a better design have been

ID
ProjectID
UserID
Date

Similarily when tracking budget dollars, the following was used
ID
ProjectID
JanDol
FebDol
MarDol
etc

vs
ID
ProjectID
Month

Are both designs for hours and dollars considered acceptable? Any comments
would be greatly appreciated. Thanks.

Weste
 
D

Duane Hookom

You seem to have a much better grasp of table design than the "another
developer". I would avoid creating fields with names like Month and Date
which are function names. Try BudgetMonth and WorkDate.
 

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

Similar Threads

Overflow error 3
Database Design 4
How can I find, when overtime starts 11
Database Design 1
Efficient table design 3
?is my table design poor? 5
Table Design Still in Progress 1
Form Design Question 3

Top