How to find last day of the month in sql query

Answer Posted / sujit pingale

select to_char(sysdate, 'day') from dual;

This will print output: tuesday i.e

select last_day(sysdate) from dual;

This will print output: 31-Aug-14

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of normalization are there?

665


What is execution plan in sql?

757


What are sql*plus environment variables?

772


Can variables be used in sql statements?

747


Show the cursor attributes of pl/sql.

775






What is procedure and function in sql?

742


What is a temporal table?

666


What is the difference between in and between in sql?

773


List the various privileges that a user can grant to another user?

774


what is bcp? When does it used? : Sql dba

706


how to use regular expression in pattern match conditions? : Sql dba

730


What is pl/sql language case sensitive?

828


What is the difference between delete, truncate and drop command?

749


What is the purpose of the partition table?

752


What is sql trigger example?

751