i_day prodn report sql auto-pivot