• shaycullen (12/15/2010)


    None of these are correct - as you are casting as "datetime" the results will be as follows;

    2002-02-02 00:00:00.000

    2049-02-02 00:00:00.000

    1950-02-02 00:00:00.000

    2000-02-02 00:00:00.000

    :rolleyes:

    Yes, the time portions were very relevant for this question.

    When you specify 2002-02-02 in SQL Server, 2002-02-02 00:00:00.000 is automatically assumed, so the answers are still correct.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP