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:
4476
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:
Example to delete records of customer table which are in Gujarat_cust table
Write a query to add and subtract months using add_months function
CREATE USER
Display customers having city other than gujarat and mp using not in
Example to find employees from state 'Delhi' using select query
Student Enrollment System Database
INTERSECTION OPERATOR
Example to view records of student, course and SC tables
using NOT EXISTS
String functions
DROP INDEX
ALL operator
Example to revoke insert privilege of item table from a user using revoke
Example to find items having unit price greater than or equal to 500
FROM clause
Display total of each invoices
Display average item price of item table using avg() function
Write a query to calculate the Date difference
DISTRIBUTED DATABASE
COMMIT TRANSACTION
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