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
Old Hand
Old Hand (318 reputation)Old Hand (318 reputation)Old Hand (318 reputation)Old Hand (318 reputation)Old Hand (318 reputation)Old Hand (318 reputation)Old Hand (318 reputation)Old Hand (318 reputation)

Group: General Forum Members
Points: 318 Visits: 635
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
SSCertifiable
SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)

Group: General Forum Members
Points: 5487 Visits: 35451
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
Old Hand
Old Hand (318 reputation)Old Hand (318 reputation)Old Hand (318 reputation)Old Hand (318 reputation)Old Hand (318 reputation)Old Hand (318 reputation)Old Hand (318 reputation)Old Hand (318 reputation)

Group: General Forum Members
Points: 318 Visits: 635
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
SSCertifiable
SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)

Group: General Forum Members
Points: 5487 Visits: 35451
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
SSCertifiable
SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)

Group: General Forum Members
Points: 7869 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