The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, ahmet.
Asked: November 12, 2018 - 7:11 am UTC
Last updated: November 12, 2018 - 11:06 am UTC
Version: none
Viewed 1000+ times
with dates as ( select date'2017-12-31' + level dt from dual connect by level <= 365 ) select count(*) from dates where extract ( day from dt ) = 15; COUNT(*) 12 with dates as ( select date'2017-12-31' + level dt from dual connect by level <= 365 ) select count(*) from dates where extract ( day from dt ) = 15 and dt between date'2018-03-11' and date'2018-04-19'; COUNT(*) 2 with dates as ( select date'2017-12-31' + level dt from dual connect by level <= 365 ) select count(*) from dates where extract ( day from dt ) = 9 and dt between date'2018-03-11' and date'2018-04-19'; COUNT(*) 1
The Oracle documentation contains a complete SQL reference.