how to calculate the date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karthickkuchanur
    New Member
    • Dec 2007
    • 156

    how to calculate the date

    Hai,
    I have the doubt that how to make query like
    I have the start date and date
    I suppose to calculate the the days from start date
    for example if the date is25/02/2008.i have prepare the report for 13 days after the start date HOw can write the query for next 13 days

    i use the Dateadd function but i cant able to phase the query

    select startdate from ClientRegister between( DateAdd(day,13, startdate) from ClientRegister)
    I tried like foolish sorry if it any wrong
  • nedu
    New Member
    • Nov 2006
    • 65

    #2
    Hi,

    Please check this and let me know is t working r not . .


    select startdate from ClientRegister where startdate between
    startdate and ( DateAdd(day,13, startdate) from ClientRegister

    Regards,
    Nedu. M
    Last edited by nedu; Feb 26 '08, 10:23 AM. Reason: Repeated words included

    Comment

    Working...