select * from a where datetime between to_date('2002/06/30','yyyy/mm/dd') and to_date('2002/07/01','yyyy/mm/dd')