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:
4197
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:
GROUP BY Clause
Display invoices having items greater than or equal to 3
COMMIT TRANSACTION
INDEXES
ORDER BY Clause
DROP VIEW
VIEWS
Example to create view
Display customers whose name starts with 's'
ORACLE DATATYPES
Example to find total value of each item based on current stock using multiplication operator in select query
Example to find employees from state 'Delhi' using select query
Example to provide insert and select privilege of item table to a user using grant
DROP DATABASE
Cursor to display employees having salary greater than 1900
UNION QUERY
Example to add constraint of primary key in a table
Display total number of items ordered in each invoices
Write a query to add days in todays date using sysdate function
Write a query to Calculate the month difference
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