FROM DRP_MARKET_PRODUCT T WHERE T.CREATEDTIME BETWEEN TO_DATE('2016-10-08 12:30', 'yyyy-mm-dd hh24:mi') AND TO_DATE('2016-10-14 13:00', 'yyyy-mm-dd hh24:mi') AND TO_CHAR(T.CREATEDTIME, 'hh24:mi:ss') BETWEEN '12:30:00' AND '13:00:00'