How to find last day of the month in sql query

Answers were Sorted based on User's Feedback



How to find last day of the month in sql query..

Answer / vishwa

below query will get the last day of the month
select last_day(sysdate) from dual

Is This Answer Correct ?    14 Yes 0 No

How to find last day of the month in sql query..

Answer / ajit

select TO_CHAR( last_day(sysdate), 'day')
from dual

Is This Answer Correct ?    12 Yes 2 No

How to find last day of the month in sql query..

Answer / 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

How to find last day of the month in sql query..

Answer / manoranjan sethy

Select LAST_DAY(Sysdate) From Dual;

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

Is hadoop a nosql?

0 Answers  


How do you remove duplicates without using distinct in sql?

0 Answers  


what is 'mysqldump'? : Sql dba

0 Answers  


What is assignment operator in pl sql?

0 Answers  


What is blind sql injection?

0 Answers  






What is a schema sql?

0 Answers  


Easy way to convert tableau "IF - ELSEIF" statements to Netezza "CASE" statements.

1 Answers   CTS,


What is meant by truncate in sql?

0 Answers  


i have a table with fields(id,name,accnt_type)and in account type are FD,SAVING,RD. Write a query to get How many number of People are in each type of Account?

6 Answers   Fidelity, IBM,


What is normalization in a database?

0 Answers  


What is pl sql commands?

0 Answers  


Is nosql relational?

0 Answers  


Categories