select date_format(ok.CREATED_DT,'%Y-%m-%d'),count(*)

from ord_rkd ok

where ok.CREATED_DT BETWEEN '2014-07-02' and '2015-08-03'

group by date_format(ok.CREATED_DT,'%Y-%m-%d');