- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Not able to get the difference between two dates (SAP)
It’s a very basic operation that you do in database. You can try using DateAdd function available and use the date overload of the function. You need to pass one date as negative so in actual the difference is calculated
SELECT DATEADD(d,-[dateTwo], [dateOne]) AS 'Difference in Dates' FROM [TABLE]
Here‘d’ refers to the day.
- Related Articles
- C# Program to get the difference between two dates
- How to get the difference between two dates in Android?
- C# Program to get the difference between two dates in seconds
- How to get the differences between two dates in iOS?
- How to calculate the difference between two dates in JavaScript?
- Get the relative timestamp difference between dates in JavaScript
- Not able to access SOAP Manager in SAP server
- C# Program to determine the difference in hours between two dates
- Get the difference between dates and calculate salary with MySQL?
- How to get the number of seconds between two Dates in JavaScript?
- How to get the number of days between two Dates in JavaScript?
- How to get the differences between two dates in Android using Kotlin?
- How to calculate time difference between two times or dates?
- How to get number of quarters between two dates in Java
- Get the SUM of records between two given dates in MySQL

Advertisements