SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


4-4-5 Calendar Creation Table in SQL Server


4-4-5 Calendar Creation Table in SQL Server

Author
Message
RamSteve
RamSteve
SSC Eights!
SSC Eights! (808 reputation)SSC Eights! (808 reputation)SSC Eights! (808 reputation)SSC Eights! (808 reputation)SSC Eights! (808 reputation)SSC Eights! (808 reputation)SSC Eights! (808 reputation)SSC Eights! (808 reputation)

Group: General Forum Members
Points: 808 Visits: 640
HI ,
Could some one please provide me with 4-4-5 Calender table creation Script where i would need the following columns .. Thanks in Advance



Columns :

Year
Quarter
Period
Month
FiscalWeek
Week
WeekDay
Date
days
J Livingston SQL
J Livingston SQL
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12319 Visits: 37592
RamSteve (8/15/2013)
HI ,
Could some one please provide me with 4-4-5 Calender table creation Script where i would need the following columns .. Thanks in Advance



Columns :

Year
Quarter
Period
Month
FiscalWeek
Week
WeekDay
Date
days




for how many years does you expected calendar cover?
Fiscal Week / Week....please explain the difference
how many weeks do you have in a "Year" and what criteria determines the first week of the year?

yadda yadda....

me thnks we need more info please.

________________________________________________________________
you can lead a user to data....but you cannot make them think
and remember....every day is a school day

RamSteve
RamSteve
SSC Eights!
SSC Eights! (808 reputation)SSC Eights! (808 reputation)SSC Eights! (808 reputation)SSC Eights! (808 reputation)SSC Eights! (808 reputation)SSC Eights! (808 reputation)SSC Eights! (808 reputation)SSC Eights! (808 reputation)

Group: General Forum Members
Points: 808 Visits: 640
I would need any Simple Query for generating 4-4-5 calendar that most of the companies use in USA .. My Company was not using it before and i was trying to implement it by using the date range from year 1990 to 2050

Thanks in Advance
J Livingston SQL
J Livingston SQL
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12319 Visits: 37592
RamSteve (8/15/2013)
I would need any Simple Query for generating 4-4-5 calendar that most of the companies use in USA .. My Company was not using it before and i was trying to implement it by using the date range from year 1990 to 2050

Thanks in Advance


I am not from the USA and not familiar with the 4-4-5 calendar "that most of the companies use in USA".

in my experience the "company calendar" nearly always requires specific coding to meet internal reqs.

Hopefully someone else will be along shortly to help you.

________________________________________________________________
you can lead a user to data....but you cannot make them think
and remember....every day is a school day

bitbucket-25253
bitbucket-25253
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15947 Visits: 25280
I believe you will find what you are searching for in these two older articles here on SSC.

http://www.sqlservercentral.com/articles/function/67046/

http://www.sqlservercentral.com/articles/function/68323/

If everything seems to be going well, you have obviously overlooked something.

Ron

Please help us, help you -before posting a question please read

Before posting a performance problem please read
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search