How to find last day of the month in sql query
Answers were Sorted based on User's Feedback
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 |
Answer / ajit
select TO_CHAR( last_day(sysdate), 'day')
from dual
| Is This Answer Correct ? | 12 Yes | 2 No |
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 |
Can we use rowid as primary key?
How to revise and re-run the last sql command?
what are the different type of sql's statements ? : Sql dba
what is msql? : Sql dba
what is datawarehouse? : Sql dba
what is explain plan?, given an example...
What is the usage of NVL?
7 Answers Infosys, Micro Infotek,
what is an alias command? : Sql dba
Does sql*plus also have a pl/sql engine?
Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.
what is variable in package specification
can i use dbms_output.put_line in a function u are telling as return statement
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)