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 subtract days from todays date
Posted By:
Adalricus Fischer
Category:
Oracle
Views:
13857
Write a query to subtract days from todays date.
Write a query to subtract days from todays date.
SELECT SYSDATE-10 FROM dual;
Output :
SYSDATE-1
16-APR-97
This command will subtract 10 days from the current date.
Share:
Previous Post:
Write a query to add days in todays date using sysdate function
Next Post:
Write a query to add and subtract months using add_months function
Didn't find what you were looking for? Find more on
Write a query to subtract days from todays date
Or get
search suggestion and latest updates
.
Adalricus Fischer
author of Write a query to subtract days from todays date is from Frankfurt,
Germany
.
View All Articles
Related Articles and Code:
Write a query to add days in todays date using sysdate function
PROGRAM TO READ TODAY'S DATE THROUGH KEYBOARD AND THEN DISPLAY THE CORRESPONDING DAY AND MONTH
Write a query to add and subtract months using add_months function
Write a query to find the last day of the month
How would u get today’s date?
Write a query to calculate the Date difference
Write a query to change the format of date using to_char function
Find Total Days Elapsed from given date and time
Program to find number of days b/w two given dates
Write a query to change the case of strings using lower and upper function
Write a query to Calculate the month difference
Write a query to calculate the year difference
PROGRAM TO CONVERT DAYS TO MONTHS AND DAYS
Write a menu driven program to display message, user name, terminal name, login date and time
Program that takes short date from a user and displays long date
Program that takes short date from a user and displays medium date
Example of outer join to display items which are sold and not sold till today
Display number of months from joining date to birth date of programmer
Program to check entered date is valid birth date or not
Program to find the day of a week of a given date from 15 october 1582 to end of universe using arrays
Other Interesting Articles in Oracle:
Display invoices having items greater than or equal to 3
USING EXISTS with CO-RELATED SUB-QUERIES
TRANSACTIONS AND CONCURRENCY
Create an SQL statement that will generate a series of GRANT statements to five new users
Display lowest item price of item table using min() function
Student - project database
Example to insert data using variables in a table
Example to view records of student, course and SC tables
Display 2 items having lowest current stock
Student-Exam database
Display total item price of item table using sum() function
DROP VIEW
Write a query to subtract days from todays date
Example to create table, primary key and foreign key in student, course and SC tables
INTERSECTION OPERATOR
Example to add a field or column in a table
Customer - orders - salespeople database - Joining tables
Display invoice dates in 'month dd,yyyy' format
CREATE VIEW
Write a query to add and subtract months using add_months function
Please enter your Comment
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
Akshay Kadu
from
India
Comment on:
Dec 25
select substr(sysdate,1,2) from dual;
View All Comments
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