473,378 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

TimeSheet - Database design

For many years I had my employees enter their time and job cost information into a spreadsheet. Each employee had their own password protected workbook. Each worksheet was a month and there was also a summary worksheet. There were two sections to the spreadsheet, time and job cost. For each day they would enter their time classification(s) and the department(s) they worked in. The total time must equal to total departments time. There is a column to calcate overtime if the total of time classications exceeded 7.5.

The following is the columns of the worksheet:
Date, Regular Time, SickLeave, ApprovedLeave, Vacation, LeaveWithoutPay, LeaveNoCharge, Total Time (calculated), Overtime (calculated). Department1, Department2, Department3, Total Departments (calculated), Proof (Total Time - Total Departments).

The summary worksheet compiled the information entered by quarter. Also calculated their remaining time per classification. The calculation is time rolled over from previous year + time available current year - time used current year. Rolled over time and time available are static values entered the first day of each year. time used current year is calculated.

I want convert this into a database. So i can analyze and control the information better. But need some help designing the database. Below is what I have so far:

tbl_Employee
EmployeeID (pk)
EmployeeName

tbl_Department
DepartmentID (pk)
DepartmentName

tbl_TimeClass
TimeClassID (pk)
TimeClass - regular time, sickleave, vacation, etc.

tbl_BeginningTimeCurrentYear
TransactionID (autonumber)(pk)
Year - alway the first day of the year (sk)
EmployeeID (fk)
TimeClassID (fk)
TimeClassHours

tbl_RolledOverTimePreviousYear
TransactionID (autonumber)(pk)
Year - alway the first day of the year (sk)
EmployeeID (fk)
TimeClassID (fk)
TimeClassHours

tbl_TimeSheet
TransactionID (autonumber)(pk)
Date (sk)
EmployeeID (fk)
TimeClassID (fk)
TimeClassHours
DepartmentID (fk)
DepartmentHours

Scenarios:
1. An employee can have one or more time classifcations per day
2. An employee can work in one or more departments per day

Any help or suggestions will be greatly appreciated.
Thanks in advance
Mike
Jan 5 '08 #1
1 3980
MMcCarthy
14,534 Expert Mod 8TB
Have a look at this structure.

tbl_Employee
EmployeeID (pk)
EmployeeName

tbl_Department
DepartmentID (pk)
DepartmentName

tbl_TimeClass
TimeClassID (pk)
TimeClass - regular time, sickleave, vacation, etc.

tbl_Job
JobID (pk)
JobName

tbl_Costing
CostingID (pk)
EmployeeID (fk reference to tbl_ Employee)
DepartmentID (fk reference to tbl_Department)
CostingDate
TimeClassID (fk reference to tbl_TimeClass)
CostingHours
JobID (fk reference to tbl_Job)

OK the first thing is that Department Hours is a calculated field and shouldn't be stored.

Secondly, you don't use separate tables for each year.

Most of what you were trying to do with tables you should be doing with queries.

All you need from your tables is a basic structure to store the information. You can then use queries to calculate the rest.
Jan 8 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: harsha mogaligundla | last post by:
Dear All , I am trying to develop a web based electronic Timesheet system for the payroll department using ASP and SQL server, the front end has fields like ssn,time -in , tim-out,regular...
2
by: christian | last post by:
I'm creating a Timesheet Database for the employees of my Department. One of my tables is called Fiscalpayperiod and contains: Paysunday, payweek, Date, Day. Pay Sunday Pay week Date Day...
3
by: christian | last post by:
HI, I'm creating a TimeSheet Database for the Employees of my Deparment. One of the Tables is called FiscalPayPeriod and contains the folllowing elements: PaySunday,PayWeek, Date, Day. Pay...
1
by: christian | last post by:
Can someone give an example of how to create a timesheet Database? I don't know how to start.
0
by: Redz | last post by:
About SocketTimesheet™ SocketTimeSheet is one of the most practical, affordable and user friendly web-based time tracking software and expenses management system in the market today - it's cheap,...
2
by: mgorelkin | last post by:
I'm new to MS Access, and was able to familiarize myself with the basics. I am, however, struggling with the following problem. I am trying to create a timesheet type form where the sheet contains...
5
by: Ordovicium | last post by:
I am trying to getting run the software timesheet php. -> http://www.timesheetphp.com/ The installation works fine, but I can't logon. It is impossible to verify the password. Maybe some one can...
1
by: LiveTecs | last post by:
http://www.livetecs.com TimeLive Web Collaboration Suite is an integrated suite that allows you to manage project life cycle including tasks, issues, bugs, timesheet, expense, attendance. ...
1
by: architrave | last post by:
I am building a timesheet for my work. Instead of record by record timesheet, I wanted to have a form with 15 unbound fields (pay period) distributed by dates along columns and different projects...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.