Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Filter Date Column - smartest/fastes way

User_Y8AU3Oct 7 2021

Hello all,
I'm new :) Looking for some guidance. I usually need to query huge tables by date. The date column is formatted like this: 2021-09-24 13:03:17. I typically need the datasets by month, from 2019-01 to etc. I use to_char(CALENDAR_DT, 'YYYYMM') to set my condition but it takes a long time. I wonder if this is the best way to do it?
Thank you!

Comments
Post Details
Added on Oct 7 2021
9 comments
25,157 views