Click here to Skip to main content
15,886,110 members
Articles / Database Development / SQL Server
Article

Century Date Tables

Rate me:
Please Sign up or sign in to vote.
3.67/5 (4 votes)
26 Oct 2000 64K   474   18   6
SQL DDLs for creating table structures and inserting the data for a set of tables suitable for producing pick lists for validation of the Month Names, Month Numbers, Days in each Month and Years in the 20th Century
  • Download source files - 2 Kb
  • Introduction

    Here is a copy of the SQL DDLs for creating table structures and inserting the data for a SQL Server set of tables suitable for producing pick lists for validation of the Month Names, Month Numbers, Days in each Month and Years in the 20th Century, for example. I hope to post ASP Source later which accesses these tables to produce linked pick lists to assure that cross field valids are handled correctly. Leap year logic and Century crossover will be handled in the code produced later. This is my first attempt at producing some modestly valuable data and code to contribute to generally available freeware as a payback for some of the nice code I received previously

    By the way I am one of those who insists that the 21st Century does not officially begin until next year and these tables have assigned the Year 2000 to the 20th Century. You can change this value if you believe otherwise, but the First Century A.D. begin with the Year 1 A.D. and ended with the Year 100 A.D. There was never a Year Zero, so why insist otherwise and why change methodologies now? Trivia question: Which Millennium was actually longer in duration, the First or the Second or were they of the same duration, and if so, why? The answer may surprise some, but you can win a few mugs of grog over this one at your local pub if you wish. First one to answer correctly wins free source code for Birth Date validation.

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    Written By
    United States United States
    This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

    Comments and Discussions

     
    GeneralMillennium Length Pin
    Stevecpp27-Oct-00 5:02
    Stevecpp27-Oct-00 5:02 
    GeneralRe: Millennium Length Pin
    Eric30-Oct-00 5:40
    Eric30-Oct-00 5:40 
    GeneralRe: Millennium Length Pin
    James Curran30-Oct-00 6:29
    James Curran30-Oct-00 6:29 
    GeneralRe: Millennium Length Pin
    Eric30-Oct-00 6:42
    Eric30-Oct-00 6:42 
    I'm sorry that you had the impression that I did a mistake. In fact, before writting my previous message I checked in my dictionnary (I've got it actually on my desk, opened on the Calendar word) and it's effectively written October the 4th.

    I checked miscellaneous resources on the Web (sorry, all in french but if you want I can give you some pointers) and ALL are saying the same: October the 4th.

    In fact, I really did a mistake: the gregorian calendar was effectively adopted in France in 1582 but in December and not in October (I can also give some pointers on this).

    Beside this, this doesn't change the answer to the original question: the first millenium has more days than the second
    GeneralRe: Millennium Length Pin
    crispy30-Oct-00 12:44
    crispy30-Oct-00 12:44 
    GeneralRe: Millennium Length Pin
    Kastellanos Nikos3-Nov-00 5:08
    Kastellanos Nikos3-Nov-00 5:08 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.