Results 1 to 4 of 4

Thread: [SOLVE]I need a SQL command, how to use date minus with system date know its last..

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    445

    [SOLVE]I need a SQL command, how to use date minus with system date know its last..

    I need a SQL command, how to use date minus with system date know its last 3 day?

    how to minus the date to know still have how many day left, but minimum but have 3day.... compare to system date...??

    Code:
    SELECT ProductNo, Gendate from ProductInfo 
    WHERE Gendate - date() = 3
    GROUP BY ProductNo, Gendate
    Last edited by wenight; Nov 5th, 2007 at 03:26 AM.

  2. #2
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Re: I need a SQL command, how to use date minus with system date know its last 3 day?

    how to minus the date to know still have three more day compare to system date...??
    Not clear what u are trying? Do you want to deduct 3 days from the system date?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    445

    Re: I need a SQL command, how to use date minus with system date know its last 3 day?

    I have already solve it...

  4. #4
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Re: [SOLVE]I need a SQL command, how to use date minus with system date know its last..

    Good.
    But take sometime to post your solution, it might help somebody.

Posting Permissions

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



Click Here to Expand Forum to Full Width