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:
8503
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:
ALTER USER
DISTRIBUTED DATABASE
Display 2 items having lowest current stock
Example to create an index
DROP DATABASE
Display total number of items ordered in each invoices
Supplier-parts-project database
Example to find total value of each item based on current stock using multiplication operator in select query
Display student details born in year 1980 to 1982 using to_char() function
Write a query to find the last day of the month
using NOT EXISTS
Example to insert record in to item table using sequences
SET TRANSACTION
Cursor to update salary details of an employee
DROP TABLE
CREATE VIEW
Example to insert records in student, course and SC tables
WHERE clause
GROUP BY Clause
Customer - orders - salespeople database - Joining tables
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