Jump to content

Getting the Next nearest dates in mysql query


surajkandukuri

Recommended Posts

Hi all,

 

      I have a table

 

  EmployeeNumber    Category      completiondate  First Review  Second Review      Third Review

    1                              1                1/12/08              1/12/09          1/12/10              1/12/11

    1                              2                1/1/09                1/1/10            1/1/11                  1/1/12 

 

  Now I want to get the Nearest Review Dates for next 4 months from the present day.  I would like to have a output similar to

 

            EmployeeNumber    Category      Reviewdate

                  1                          2                  1/1/10            In this case  1/1/09 as it is within the next 4months.

 

Please help me in this case!!

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.