About 70,000 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 · Closed 9 years ago. This question have been asked many times but i cannot find any easy answers on how to get hours and minutes from a datediff().

  4. Newest 'datediff' Questions - Stack Overflow

    May 17, 2015 · I want the datediff difference to be mentioned as for example 1 year, 2 months, and 5 days in Tableau desktop. My Year and month works fine, i can't seem to wrap my head …

  5. 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 …

  6. 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 …

  7. Calculate exact date difference in years using SQL

    All datediff() does is compute the number of period boundaries crossed between two dates. For instance datediff(yy,'31 Dec 2013','1 Jan 2014') returns 1. You'll get a more accurate result if …

  8. sql - Dynamic DatePart when using DateDiff - Stack Overflow

    The only thing you can really do aside from the suggested dynamic sql or case statement is to always do the datediff at a granular DatePart and then upconvert. This isn't fool proof though, …

  9. DATEDIFF in SPARK SQl - Stack Overflow

    Sep 27, 2018 · As you have mentioned SparkSQL does support DATEDIFF but for days only. I would also be careful as it seems the parameters are the opposite way round for Spark, ie - …

  10. sql - Date Difference between consecutive rows - Stack Overflow

    The question is tagged with MS Access, and as far as I know Access does not support analytical functions. The question also states the OP is using Access 2003 which definitely does not …