Click here to Skip to main content
15,912,578 members
Home / Discussions / Database
   

Database

 
AnswerRe: employee timecard Pin
dan!sh 30-Sep-09 16:27
professional dan!sh 30-Sep-09 16:27 
AnswerRe: employee timecard Pin
εїзεїзεїз30-Sep-09 21:32
εїзεїзεїз30-Sep-09 21:32 
AnswerRe: employee timecard Pin
Sujit Mandal30-Sep-09 23:08
Sujit Mandal30-Sep-09 23:08 
GeneralRe: employee timecard Pin
uglyeyes1-Oct-09 13:41
uglyeyes1-Oct-09 13:41 
GeneralRe: employee timecard [modified] Pin
uglyeyes5-Oct-09 13:58
uglyeyes5-Oct-09 13:58 
GeneralTrack work extents Pin
David Mujica7-Oct-09 3:28
David Mujica7-Oct-09 3:28 
GeneralRe: Track work extents Pin
uglyeyes15-Oct-09 13:10
uglyeyes15-Oct-09 13:10 
GeneralRe: Track work extents Pin
David Mujica16-Oct-09 10:03
David Mujica16-Oct-09 10:03 
Here is a rough idea of how you could design a time keeping database ...

Table: Timecard_Header
HID - Primary key Auto generated sequence number. (Header ID)
EMPID - Key to the employee table
TCDATE - Timecard date
TIME_IN - Datetimestamp of when the timecard begins (shift start) Include the date portion incase the shift begins at 11pm and runs across midnight
TIME_OUT - Datetimestamp


Table: Timecard_Details
DID - Primary key. Sequence number (detail ID)
HID - Foreign key reference back to the header record
TIME_START - Beginning time for this time slice
TIME_END - Ending time for this time slice
TDTYPE - Timecard deail type (Use this to indicate Work, Break, Absence, etc)
TDCODE - Used as a further explaination of the type, for example Absence - Vacation or Absence - Jury duty
PCODE - Paycode (0 - Unpaid, 1 - Regular pay, 2 - Overtime, 3 - Doubletime, etc)
PRate - Pay rate show the actual rate paid for this time slice. $10/hr Regular pay or $15 / hr for overtime

This should give you an idea of one way of looking at the data, you should extend this model to meet your requirements.
QuestionOpenrowset across a network Pin
Mustafa Ismail Mustafa30-Sep-09 2:13
Mustafa Ismail Mustafa30-Sep-09 2:13 
AnswerRe: Openrowset across a network Pin
Henry Minute30-Sep-09 3:14
Henry Minute30-Sep-09 3:14 
GeneralRe: Openrowset across a network Pin
Sujit Mandal30-Sep-09 23:09
Sujit Mandal30-Sep-09 23:09 
AnswerRe: Openrowset across a network Pin
Md. Marufuzzaman1-Oct-09 7:14
professionalMd. Marufuzzaman1-Oct-09 7:14 
QuestionTable Structure for Product -> Book Pin
Brendan Vogt29-Sep-09 23:39
Brendan Vogt29-Sep-09 23:39 
AnswerRe: Table Structure for Product -> Book Pin
Mycroft Holmes30-Sep-09 0:34
professionalMycroft Holmes30-Sep-09 0:34 
QuestionRe: Table Structure for Product -> Book Pin
Brendan Vogt30-Sep-09 2:43
Brendan Vogt30-Sep-09 2:43 
AnswerRe: Table Structure for Product -> Book [modified] Pin
Andy_L_J30-Sep-09 21:29
Andy_L_J30-Sep-09 21:29 
QuestionRe: Table Structure for Product -> Book Pin
Brendan Vogt30-Sep-09 22:55
Brendan Vogt30-Sep-09 22:55 
AnswerRe: Table Structure for Product -> Book [modified] Pin
Andy_L_J1-Oct-09 0:18
Andy_L_J1-Oct-09 0:18 
Questionpivot error Pin
snouto29-Sep-09 21:28
snouto29-Sep-09 21:28 
AnswerRe: pivot error Pin
Mycroft Holmes30-Sep-09 0:42
professionalMycroft Holmes30-Sep-09 0:42 
AnswerRe: pivot error Pin
Syed Mehroz Alam30-Sep-09 0:50
Syed Mehroz Alam30-Sep-09 0:50 
AnswerRe: pivot error Pin
i.j.russell30-Sep-09 1:15
i.j.russell30-Sep-09 1:15 
Questionhow to backup oracle 10g Pin
E_Gold29-Sep-09 9:58
E_Gold29-Sep-09 9:58 
AnswerRe: how to backup oracle 10g Pin
Mycroft Holmes29-Sep-09 19:31
professionalMycroft Holmes29-Sep-09 19:31 
Questionhelp required in adding dynamic columns and search anywhere in table ???? Pin
jarajeshwaran29-Sep-09 7:17
jarajeshwaran29-Sep-09 7:17 

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.