日期:2014-05-16  浏览次数:20505 次

補日期數據!
數據:條件是2014-04-01 到 2014-04-04 這樣要根據emp_id補上缺少的日期數據
條件是動態的可能是2014-04-01 到 2014-04-30,動態的補上缺少的日期
emp_id      y_year      m_month      d_day 
    42             2014              4                  1
    42             2014              4                  3
    42             2014              4                  4
    55             2014              4                  2
    55             2014              4                  3
    66             2014              4                  1
    66             2014              4                  2   
    66             2014              4                  3
    66             2014              4                  4
結果:
emp_id      y_year      m_month      d_day 
    42             2014              4                  1
    42             2014              4                  2
    42      &nbs