Oracle SQL date between not showing -


this have in table: enter image description here

what want sessiondate on june, using code:

select * conferencesession sessiondate between '01-06-17' , '30-06-17'; 

but result empty didn't code.

you can use trunc function 'month' june 2017:

select * conferencesession trunc(sessiondate, 'month') = trunc(to_date('06-17','mm-yy'),'month') 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -