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:
8013
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:
Write a query to subtract days from todays date
DEALLOCATE CURSOR
UNION QUERY
TRANSACTIONS AND CONCURRENCY
Example of cross join
Display customers detail in a ascending order of customer name using order by clause in a select query
Example of sub query to display items having item price less than Keyboard
Customer - orders - salespeople database
Write a query to add days in todays date using sysdate function
Example to view records of student having marks greater than 70 and course name is FOP
Write a query to calculate the year difference
Use the FRIENDS table to answer the following questions
Example to create table based on existing table
BEGIN TRANSACTION
Example to concatenate a string using select query
Display average item price of item table using avg() function
Example to revoke insert privilege of item table from a user using revoke
INTERSECTION OPERATOR
Write a query to add and subtract months using add_months function
WHERE clause
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