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:
4144
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:
Display lowest item price of item table using min() function
Example of natural join
Example to find employees from state 'Delhi' using select query
ALTER USER
DROP TRIGGER
UNION
Display number of months from joining date to birth date of programmer
Example to view records of student having marks greater than 70 and course name is FOP
Example to create view
Example to insert records of one table to another table
Write a query to subtract days from todays date
Add fields or columns city and area in a customer table
Customer - orders - salespeople database - Joining tables
DROP TABLE
MINUS OPERATOR
Display average item price of item table using avg() function
Write a query to change the format of date using to_char function
Car rental agency database
Student Enrollment System Database
Display customers detail in a ascending order of customer name using order by clause in a select query
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