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!

Oracle Sql to get day name from date

3126451May 16 2017 — edited May 16 2017

SELECT

case TO_CHAR( :from_date,'D')

          when '1' then 'Sunday'

          when '2' then 'Monday'

          when '3' then 'Tuesday'

          when '4' then 'Wednesday'

          when '5' then 'Thursday'

          when '6' then 'Friday'

          when '7' then 'Saturday' else 'no data'

       end d

  from dual

This post has been answered by 3126451 on May 16 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 13 2017
Added on May 16 2017
10 comments
13,607 views