How do we get month name in SQL Server 2000, Oracle, MS Access?

Answer Posted / kathiravan jayachandran

In Oracle

select to_char(sysdate, 'dd/mm/yyy')as year from dual


EG:-

select ed.emp_date_of_birth,ed.first_name,ed.last_name
from emp_details ed where
to_char(ed.emp_date_of_birth,'mm')=to_char(sysdate,'mm')

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What stored by the model?

544


Can you use order by when defining a view?

569


What is a with(nolock)?

571


What are the new security features added in sql server 2012? : sql server security

526


How to update a field in SQL after ALTERING a row?

683






How to change the name of a database user?

537


Where cross join is used?

507


What is difference between createstatement and preparedstatement?

533


Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

842


Do you know what are the restrictions applicable while creating views? : SQL Server Architecture

547


How do triggers work?

532


What is constraints and its types?

495


What is de-normalization in sql database administration? Give examples?

528


How to move database physical files in ms sql server?

527


What is indexed view?

591