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 |
How to get the 3rd column(i.e all the data along with the column name)in a table?
Is pl sql better than sql?
What is the benefit of foreign key?
difference between table level constraint and column level and advantages of table level constraint
How many triggers can be applied on a table?
How does join work in sql?
What is differance unique key and primary key.
How to get the procedure's, function's name from a package if it is wrapped(both spec & body).
how to shut down the server with 'mysqladmin'? : Sql dba
Describe different types of general function used in sql?
what is sp_pkeys? : Transact sql
what is the main difference between join and subqurey?
Oracle (3259)
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)