Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Oracle Articles
Submit Article
Home
»
Articles
»
Oracle
»
Select Query
RSS Feeds
Write a query to find the last day of the month
Posted By:
Raimond Fischer
Category:
Oracle
Views:
4129
Write a query to find the last day of the month.
Write a query to find the last day of the month
SELECT last_day(SYSDATE) FROM dual;
Output :
LAST_DAY(
30-APR-97
SELECT last_day(DOB) FROM PSTUDENT;
Output :
LAST_DAY(
31-MAR-83
31-OCT-82
30-JUN-83
30-SEP-82
29-FEB-80
31-MAR-80
31-JUL-83
Share:
Previous Post:
Write a query to calculate the year difference
Next Post:
Write a query to find the next day : finds the date when next day of week(e.g. mon to sun) will come
Didn't find what you were looking for? Find more on
Write a query to find the last day of the month
Or get
search suggestion and latest updates
.
Raimond Fischer
author of Write a query to find the last day of the month is from Frankfurt,
Germany
.
View All Articles
Related Articles and Code:
Write a query to Calculate the month difference
Write a query to add and subtract months using add_months function
Write a query to add days in todays date using sysdate function
Write a query to subtract days from todays date
PROGRAM TO CONVERT DAYS TO MONTHS AND DAYS
How to Find Day of Month
Program to calculate months in a provided number of days from user
PROGRAM TO READ TODAY'S DATE THROUGH KEYBOARD AND THEN DISPLAY THE CORRESPONDING DAY AND MONTH
PROGRAM TO DISPLAY DAY OF WEEK AND MONTH
Write a query to calculate the Date difference
Write a query to calculate the year difference
Write a query to change the format of date using to_char function
Write a query to change the case of strings using lower and upper function
Prolog program to find the last element in a given list
Prolog program to find last item of the list
Write a script to enhance the calander to accept any month as mm or mmm or only year as yyyy or both month and year
How to find Months details from given date
Find Total Days Elapsed from given date and time
How to find day of the week
Program to find number of days b/w two given dates
Other Interesting Articles in Oracle:
Cursor to update salary details of an employee
DROP INDEX
CREATING A TABLE FROM A TABLE
Use the FRIENDS table to answer the following questions
INDEXES
USING EXISTS with CO-RELATED SUB-QUERIES
REVOKE
CREATE INDEX
DROP TABLE
Display average marks of students using avg() function and also round it using round().
Example of outer join to display items which are sold and not sold till today
DISTRIBUTED DATABASE
ROLLBACK TRANSACTION
String functions
Display number of months from joining date to birth date of programmer
Example to create table, primary key and foreign key in student, course and SC tables
VIEWS
Example to find items having unit price greater than or equal to 500
DEALLOCATE CURSOR
Example of natural join
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Oracle
View All
Aggregate Functions
Analytical Functions
Common Statements
Constraints
Cursor
Data Control Language
Data Definition Lang
Data Manipulation Lang
Data Type
Database
Date Time Functions
Functions
Index
Interview FAQ
Joins
Math Functions
Operators
Select Query
Sequence
Stored Procedures
String Functions
Sub Query
System Functions
Transaction Control La...
Trigger
View
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Unix / Linux / Ubuntu
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint