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!

How to get month from date

996004Mar 31 2013 — edited Apr 1 2013
I'm currently using oracle database 11g r2. I tried to get Month from date field from my database table. I got an error, "non numeric character was found"

SELECT * FROM ATTENDENCE WHERE EMPID='E001' AND ATTENDENCEDATE=to_char(DATE_FIELD, 'Month')';

This is the query I tried.
How can I that error with this query.

Thanks in Advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2013
Added on Mar 31 2013
6 comments
6,786 views