Query using today.

  • Hello all,

    I have an issue that if possible I would like some assistance with.

    I am attempting to select records from a table using a date column where the date is greater than today. Could you possibly let me know the SQL syntax for this.

     

    Many thanks.

     

     


    Kindest Regards,

    Nick

  • here's a quick and dirty method that i've used on occasion,

    where date >= left(dateadd(d, 1, getdate(), 11)

  • ...or...

    select * from myTable where datediff(day, getdate(), dateColumn) > 0
    







    **ASCII stupid question, get a stupid ANSI !!!**

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply