query for getting yesterday date entry

  • Hi

    I am developing application using windows mobile 6 with vc++ and SQL CE 3.1

    I have used query for getting yesterday date entry ..I am doing minus 1 from system date

    and getting result. but the problem is that when the system date is 1st day of month or year.this query is not working.

    so is there any other logic

    hope for reply.

    thanx

    subodh

  • Please don't cross post. It just wastes people's time and fragments replies.

    No replies to this thread please. Direct replies to:

    http://www.sqlservercentral.com/Forums/Topic532181-323-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

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

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