About 36,400 results
Open links in new tab
  1. Difference of two date time in sql server - Stack Overflow

    Jan 22, 2010 · Is there any way to take the difference between two datetime in sql server? For example, my dates are 2010-01-22 15:29:55.090 2010-01-22 15:30:09.153 So, the result …

  2. sql - DATEDIFF function in Oracle - Stack Overflow

    Feb 9, 2015 · I need to use Oracle but DATEDIFF function doesn't work in Oracle DB. How to write the following code in Oracle? I saw some examples using INTERVAL or TRUNC. …

  3. sql server - DateDiff () Hours and Minutes? - Stack Overflow

    Mar 7, 2016 · The datepart passed to DATEDIFF will control the resolution of the output. example, if start_date and end_date differed by 59 seconds, then DATEDIFF (MINUTE, start_date, …

  4. How to use DATEDIFF to return year, month and day?

    Oct 9, 2009 · How can I use DATEDIFF to return the difference between two dates in years, months and days in SQL Server 2005 DATEDIFF (date , date) How to result that: 2 year 3 …

  5. SQL DateDifference in a where clause - Stack Overflow

    the query processor must run the function on every row in the table helped me understand and solve an issue I was having where the exact same DATEDIFF statement would complain …

  6. sql - Show datediff as seconds, milliseconds - Stack Overflow

    Dec 15, 2016 · I'm trying to calculate the difference between two datetime values. I tried datediff(s, begin,end) and datediff(ms, begin,end) however I want the difference to be returned …

  7. sql - Dateadd and Datediff function in oracle - Stack Overflow

    Apr 25, 2018 · I want to use Oracle but DATEDIFF and DATEADD function doesn't work in Oracle DB. How to write below mentioned code in Oracle? datediff ('QUARTER', pr.StartDate, …

  8. Datediff function between a date column and current date?

    How can I correctly calculate the difference in days or years between a date column and the current date? typically would use where date_diff('day, date_column1, date_column2) as …

  9. How to calculate DATE Difference in PostgreSQL? - Stack Overflow

    Here I need to calculate the difference of the two dates in the PostgreSQL. Like we do in SQL Server its much easier. DATEDIFF(Day, MIN(joindate), MAX(joindate)) AS DateDifference; I …

  10. sql - Using GETDATE WITH DATEDIFF? - Stack Overflow

    Mar 24, 2017 · It counts the number of year boundaries between two dates. So, the difference between Jan 1 20015 and Dec 31 2016 is 1 year. In addition, with DATEDIFF() the column is …