SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 27 of 27
  1. #26
    SitePoint Zealot zealus's Avatar
    Join Date
    Jan 2004
    Location
    NY
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    WHERE
        LEI.CreateDateTime >= '2008-10-01' -- From the beginning time
        AND LEI.CreateDateTime  < '2008-11-01' -- To the ending time
    Just a simple follow-up - wouldn't it be safer to have
    Code:
    WHERE
        LEI.CreateDateTime >= CAST ('2008-10-01' as datetime)
        AND LEI.CreateDateTime  < CAST('2008-11-01' as datetime)
    Or it doesn't make any sense?

  2. #27
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,347
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by zealus View Post
    Just a simple follow-up - wouldn't it be safer to have ...
    safer? how is that safer? what is the danger it is safer from?

    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •