Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

Creating Holidays and Special Dates Expand / Collapse
Author
Message
Posted Thursday, August 5, 2010 8:28 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, October 23, 2013 5:53 AM
Points: 3, Visits: 14
I wrote a wrong text into a reply few minutes ago.

The correct text is: (I included the word NOT in the last phrase)

For example, a national company that has a solution for dealing with demands. A person can send a request for other in different city, if necessary. Each person has a certain amount of business days to answer a demand. If a person receiving a demand works a city that has a local holiday his deadline for responding is different from another person in another city that has NOT a local holiday.
Post #964326
Posted Thursday, August 5, 2010 8:30 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, November 18, 2014 7:21 AM
Points: 176, Visits: 461
Greetings nbonadeu,

The regional idea is very nice. I have not worried about that yet though as I have not needed it. It would probably take another table to link the holiday to what regions celebrate that holiday. I don't think that a single field would be enough as more than one region may celebrate a holiday, but few holidays are actually celebrated by all regions. This link table can then be used to decide if a holiday should be included or excluded when deciding the number of business days for a particular area.

Thank you for the suggestion.

Terry Steadman
Post #964330
Posted Thursday, August 5, 2010 8:52 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, October 23, 2013 5:53 AM
Points: 3, Visits: 14
Terry,

You are right. To create a complete solution to deal with holidays may be we will need a region table and a third table to create a relation between holiday and region.

But I believe we can create much simpler solution, also satisfactory, creating only one table region and placing region information on the holiday table.

In this case we would use the solution only in one country. Each national or International holiday would be associated with the local country. Each state holiday associated with appropriated state and every city holiday associated with appropriated city.

If it were necessary that a holiday is associated with two or more states or cities, because it is an exception, we would create a row in the holidays table for each one.

Best regards,

Nilson Bonadeu
Post #964345
Posted Friday, August 6, 2010 9:23 AM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Thursday, May 1, 2014 8:37 AM
Points: 4,809, Visits: 208
I agree... Way to go....
Post #965248
Posted Monday, August 9, 2010 6:01 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, November 12, 2014 1:22 PM
Points: 29, Visits: 237
great idea. thanks for taking the time to share it with us
Post #965866
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse