Hello,
The company I work for recently splashed out on a linux machine to run a web
server in our office. The primary aim was a simple Intranet for the two
sites we work across. I thought it'd be fun to automate our current
holidaying system (We're strictly paper based at the moment), by putting a
booking system on the Intranet pages so staff could book them through that.
I'm sure I don't have to explain other benefits to list readers :-)
I've created a few database driven resources for this, but I'm a bit stumped
on a holiday one. What would the best way be to lay a database out for
this? Any links to online resources would be great. The way I'm thinking
of at the moment is having each day as a row in a table, then a csv style
field with employee numbers. Example:
Day Staff Off On This Day
1 1,6
2 1,2
3 4
..
..
Would this be acceptable, or is there a better way?
Thanks for any thoughts on this. 2 3006
One thing to consider: how will you query the data out of the tables?
What kind of reports do you want to create? Keep that in mind so you
don't "paint yourself into a corner" later. :)
You might consider using a one to many structure:
Employees
=========
EmpID
Name
Holidays
=========
ID
EmpId
Date
To get all the employees on a certain day, use the DATE as your WHERE
clause.
To get a list of all the days an employee has been off, use the EmpId,
and sort by Date.
Hope that helps,
John
Mr Balloon wrote: Hello,
The company I work for recently splashed out on a linux machine to run a web server in our office. The primary aim was a simple Intranet for the two sites we work across. I thought it'd be fun to automate our current holidaying system (We're strictly paper based at the moment), by putting a booking system on the Intranet pages so staff could book them through that. I'm sure I don't have to explain other benefits to list readers :-)
I've created a few database driven resources for this, but I'm a bit stumped on a holiday one. What would the best way be to lay a database out for this? Any links to online resources would be great. The way I'm thinking of at the moment is having each day as a row in a table, then a csv style field with employee numbers. Example:
Day Staff Off On This Day 1 1,6 2 1,2 3 4 . .
Would this be acceptable, or is there a better way?
Thanks for any thoughts on this.
One thing to consider: how will you query the data out of the tables?
What kind of reports do you want to create? Keep that in mind so you
don't "paint yourself into a corner" later. :)
You might consider using a one to many structure:
Employees
=========
EmpID
Name
Holidays
=========
ID
EmpId
Date
To get all the employees on a certain day, use the DATE as your WHERE
clause.
To get a list of all the days an employee has been off, use the EmpId,
and sort by Date.
Hope that helps,
John
Mr Balloon wrote: Hello,
The company I work for recently splashed out on a linux machine to run a web server in our office. The primary aim was a simple Intranet for the two sites we work across. I thought it'd be fun to automate our current holidaying system (We're strictly paper based at the moment), by putting a booking system on the Intranet pages so staff could book them through that. I'm sure I don't have to explain other benefits to list readers :-)
I've created a few database driven resources for this, but I'm a bit stumped on a holiday one. What would the best way be to lay a database out for this? Any links to online resources would be great. The way I'm thinking of at the moment is having each day as a row in a table, then a csv style field with employee numbers. Example:
Day Staff Off On This Day 1 1,6 2 1,2 3 4 . .
Would this be acceptable, or is there a better way?
Thanks for any thoughts on this.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Nils Magnus Englund |
last post by:
Hi!
I have a large table in SQL Server 2000 with a datetime-column 'dt'. I want
to select all rows from that table, excluding days which fall on holidays or
weekends. What is the best way to...
|
by: Bob |
last post by:
In .NET, is there an easy way to determine State Holidays, such as
Thanksgiving, Memorial day, etc?
Any reference is appreciated.
|
by: Ryan |
last post by:
Is there an equivalent function in SQL to the
'NETWORKDAYS(start_date,end_date,holidays)' function in Excel ?
NetworkDays in Excel returns the number of whole working days between
start_date and...
|
by: MLH |
last post by:
With a table of holidays and A97's date fn's - how best to count
weekends and holidays between two dates? My holiday table
has 4 fields. I will be adding records to it each year as info
becomes...
|
by: MLH |
last post by:
http://www.opm.gov/Fedhol/
http://www.opm.gov/Fedhol/2008.asp
Federal law (5 U.S.C. 6103) establishes the following public holidays
for Federal employees. Please note that most Federal employees...
|
by: Rumple517 |
last post by:
In my Access database project, I need to determine deadline dates based on working days and excluding holidays. I have set up the table as instructed below. The code that was given is for...
|
by: Simon |
last post by:
By default, days in the calendar control are simply displayed as numbers, I
want to show some days in a different color in this control. What is the
best way to do that?
Thanks very much.
|
by: rahulae |
last post by:
help me with this
I'm able to calculate total working days excluding weekends but how to exclude holidays,is there any other way apart from storing all the holidays in some table and not selecting...
|
by: trixxnixon |
last post by:
I know this topic is a veritable dead horse, but I have to ask, because I am unable to find something that is close to my scenario that I can completely understand.
I have a start date field ...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |