Click here to Skip to main content
16,005,141 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL : SubQuery Pin
Colin Angus Mackay10-Feb-06 22:31
Colin Angus Mackay10-Feb-06 22:31 
GeneralRe: SQL : SubQuery Pin
dev_rfid10-Feb-06 23:14
dev_rfid10-Feb-06 23:14 
QuestionTable Splitting ? Pin
cbhkenshin10-Feb-06 18:48
cbhkenshin10-Feb-06 18:48 
AnswerRe: Table Splitting ? Pin
Colin Angus Mackay10-Feb-06 22:40
Colin Angus Mackay10-Feb-06 22:40 
QuestionHow to eliminate duplicate rows from a table? Pin
jkrao10-Feb-06 17:33
jkrao10-Feb-06 17:33 
AnswerRe: How to eliminate duplicate rows from a table? Pin
Colin Angus Mackay10-Feb-06 22:48
Colin Angus Mackay10-Feb-06 22:48 
QuestionDatabase design Pin
TheJudeDude10-Feb-06 13:25
TheJudeDude10-Feb-06 13:25 
AnswerRe: Database design Pin
Ben Meyers10-Feb-06 18:29
Ben Meyers10-Feb-06 18:29 
Database design is not an easy topic to just jump into. I could attempt to provide a schema for what you are asking, but it would be a temporary fix at best. Better for you to learn to "fish" as the saying goes. In general, the goal of a database design is to prevent data redundancy and to organize your data into a logical fashion. Much beyond that would require far more than a simple forum post. I would suggest finding yourself a good database design book (I'm afraid I can't suggest one, perhaps another poster will be better able to) and perhaps taking advantage of Google to see what you can see. About.Com Database Design has quite a few interesting looking guides.

After leading off with the above, for your specific problem I would say you're on the right track, an employee table tracking employee specific information. For your timesheet tracking, most decisions would require a more in depth knowledge of the domain (which you have), but to hazard a guess I would say something along the lines of a Timesheet table with EmployeeId, Date, ClockInTime, ClockOutTime, and WorkType. Of course, this all depends on how picky you are about data constraints, but based on what you've said it is what I would suggest. While the idea of separate tables for each day may seem more prudent, you need to think in terms of the data you will have to retrieve. Something as simple as retrieving an employee's total hours for the year would be costly, involving joining eight different tables.

I hope I came across at least reasonably clear, and I wish you the best of luck in learning database design.
GeneralRe: Database design Pin
TheJudeDude11-Feb-06 0:56
TheJudeDude11-Feb-06 0:56 
GeneralRe: Database design Pin
Rob Graham11-Feb-06 5:11
Rob Graham11-Feb-06 5:11 
GeneralRe: Database design Pin
Ben Meyers11-Feb-06 9:42
Ben Meyers11-Feb-06 9:42 
GeneralRe: Database design Pin
TheJudeDude13-Feb-06 7:14
TheJudeDude13-Feb-06 7:14 
QuestionWrong values being stored to table Pin
TheJudeDude10-Feb-06 11:37
TheJudeDude10-Feb-06 11:37 
AnswerRe: Wrong values being stored to table Pin
Paul Conrad10-Feb-06 12:26
professionalPaul Conrad10-Feb-06 12:26 
GeneralRe: Wrong values being stored to table Pin
TheJudeDude10-Feb-06 12:30
TheJudeDude10-Feb-06 12:30 
GeneralRe: Wrong values being stored to table Pin
Paul Conrad10-Feb-06 12:36
professionalPaul Conrad10-Feb-06 12:36 
GeneralRe: Wrong values being stored to table Pin
TheJudeDude10-Feb-06 12:45
TheJudeDude10-Feb-06 12:45 
QuestionHow to change DataGridView row bg color if modified Pin
BambooMoon10-Feb-06 6:12
BambooMoon10-Feb-06 6:12 
QuestionSQL Pin
dev_rfid10-Feb-06 3:02
dev_rfid10-Feb-06 3:02 
AnswerRe: SQL Pin
Michael Potter10-Feb-06 3:30
Michael Potter10-Feb-06 3:30 
GeneralRe: SQL Pin
dev_rfid10-Feb-06 3:42
dev_rfid10-Feb-06 3:42 
GeneralRe: SQL Pin
Michael Potter10-Feb-06 8:25
Michael Potter10-Feb-06 8:25 
GeneralRe: SQL Pin
dev_rfid10-Feb-06 20:57
dev_rfid10-Feb-06 20:57 
AnswerRe: SQL Pin
try8810-Feb-06 17:28
try8810-Feb-06 17:28 
GeneralRe: SQL Pin
Ben Meyers10-Feb-06 18:37
Ben Meyers10-Feb-06 18:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.