About 188,000 results
Open links in new tab
  1. sql - DATEDIFF function in Oracle - Stack Overflow

    Feb 9, 2015 · In Oracle, you can simply subtract two dates and get the difference in days. Also note that unlike SQL Server or MySQL, in Oracle you cannot perform a select statement …

  2. difference between 2 dates - Oracle Ask TOM

    Dec 11, 2024 · The following SQL query demonstrates the outcome of subtracting two dates (showing the number of days between them), using the MONTHS_BETWEEN function and …

  3. Calculating Date Time Differences In Oracle Sql - sqlpey

    Nov 22, 2024 · In summary, calculating the difference between two date/time values in Oracle SQL involves subtracting one value from the other and multiplying the result by the appropriate …

  4. Calculate difference between 2 date / times in Oracle SQL

    Oracle also has a data type TIMESTAMP, which can also represent a date (with time). If you subtract TIMESTAMP values, you get an INTERVAL; to extract numeric values, use the …

  5. Getting the difference between Dates - Oracle Ask TOM

    With Oracle Dates, this is pretty trivial, you can get either TOTAL (days, hours, minutes, seconds) between 2 dates simply by subtracting them or with a little mod'ing you can get …

  6. Mastering How to Calculate Difference Between Two Dates in Oracle

    To calculate the number of days between two dates, I use the DATEDIFF function. This function takes two date parameters and returns the difference in days. For instance: The output will …

  7. DATEDIFF - Oracle

    Use the @DATEDIFF function to calculate the difference between two dates or datetimes, in days or seconds. The difference between the specified dates. Valid values can be: DD, which …

  8. Oracle DATEDIFF Function Explained - Blog - Silicon Cloud

    Learn how Oracle's DATEDIFF function calculates date differences in days, weeks, months, or years. Syntax and examples inside.

  9. How to calculate difference between two dates in oracle 11g SQL

    Jun 5, 2008 · The difference between two dates (in oracle's usual database product) is in days (which can have fractional parts). Factor by 24 to get hours, 24*60 to get minutes, 24*60*60 to …

  10. sql - How to use datediff equivalent in Oracle with YYYYMMDD …

    Mar 2, 2015 · Oracle doesn't have a DATEDIFF() function. Instead, you can use simple arithmetic with Oracle dates, where subtracting one date from another gives the number of days, and …