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 add and subtract months using add_months function
Posted By:
Adalard Fischer
Category:
Oracle
Views:
7966
Write a query to add and subtract months using add_months function.
Write a query to Add and subtract months
SELECT add_months(SYSDATE,2),add_months(SYSDATE,-2) FROM DUAL;
Output :
ADD_MONTH ADD_MONTH
26-JUN-97 26-FEB-97
Share:
Previous Post:
Write a query to subtract days from todays date
Next Post:
Write a query to calculate the Date difference
Didn't find what you were looking for? Find more on
Write a query to add and subtract months using add_months function
Or get
search suggestion and latest updates
.
Adalard Fischer
author of Write a query to add and subtract months using add_months function is from Frankfurt,
Germany
.
View All Articles
Related Articles and Code:
Write a query to add days in todays date using sysdate function
Write a query to subtract days from todays date
Write a query to Calculate the month difference
Write a query to find the last day of the month
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
Program to implement Add and Subtract functions on Big Number Class
Program to implement Add and Subtract function on Big Number Class
Program to implement Add and Subtract function on Big Number Class
Program to add, subtract and multiply matrix
Program to add, subtract, multiply, sort, search, transpose and merge matrices
Program to add, subtract, multiply and divide rational numbers
Write a query to calculate the year difference
Write a query to calculate the Date difference
Write a shell program to add, subtract and multiply the 2 given numbers passed as command line arguments
Write a shell program to add, subtract and multiply the 2 given numbers passed as command line arguments
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
MONTH Function
Program to add numbers using function
Write a program to Add Two Matrix
Other Interesting Articles in Oracle:
HAVING Clause
Example to provide insert and select privilege of item table to a user using grant
Display total item price of item table using sum() function
Display invoice dates in 'month dd,yyyy' format
CREATE USER
Example to rename table name
CREATE PROCEDURE
Display student records whose name starts with 'm' using like % operator
Example to display records of student pass in all subjects and marks are greater than 60 in maths
Write a query to Calculate the month difference
CREATE TRIGGER
DROP INDEX
Display average item price of item table using avg() function
Write a query to find the next day : finds the date when next day of week(e.g. mon to sun) will come begg with passed date
Display item details in descending order of item price using order by clause in select query
Write a query to change the format of date using to_char function
Display customers detail in a ascending order of customer name using order by clause in a select query
USING UNION WITH ORDER BY
NUMERIC FUNCTIONS
Write a query to find the last day of the month
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