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:
8057
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:
Display customers which are from satellite area of ahmedabad, nadiyad cities
SUPPLIER-PARTS database
SELECT
Display 2 items having lowest current stock
Write a query to find the last day of the month
Example to concatenate a string using select query
Example to insert data using variables in a table
WHERE clause
Cursor to update salary details of an employee
Example to revoke insert privilege of item table from a user using revoke
UNION QUERY
Example to create view
Student Enrollment System Database
SUPPLIER-ORDERS-CUSTOMERS database
Customer - movie database
Display item details in descending order of item price using order by clause in select query
Display items containing letter 't' in item name
Customer - orders - salespeople database
Car rental agency database
Example to find items having unit price greater than or equal to 500
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