About 51 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 should be 14.063 …

  2. 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 month 10 day Can …

  3. 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. SELECT DATEDIFF …

  4. Include Start Date and the End Date in DateDiff function

    Include Start Date and the End Date in DateDiff function Asked 11 years, 8 months ago Modified 11 years, 5 months ago Viewed 19k times

  5. sql server 2008 - DATEADD (MONTH, DATEDIFF (MONTH, 0, GETDATE …

    The DateDiff function returns how many seconds, months, years - whatever interval you specify between the first date (here 0) and the second date (here the current date).

  6. SQL Datediff - find datediff between rows - Stack Overflow

    Apr 20, 2011 · SQL Datediff - find datediff between rows Asked 14 years, 11 months ago Modified 4 years, 11 months ago Viewed 40k times

  7. 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 about an overflow in …

  8. What is the alternate of Datediff() to find the date difference?

    What is the alternate of Datediff () to find the date difference? Asked 5 years, 10 months ago Modified 5 years, 7 months ago Viewed 7k times

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

    You can substract dates in Oracle. This will give you the difference in days. Multiply by 24 to get hours, and so on. SQL> select oldest - creation from my_table; If your date is stored as character data, you …

  10. sql server 2008 - DateDiff years into decimals - Stack Overflow

    May 2, 2012 · DATEDIFF(dd, @EndDateTime, i.mat_exp_dte)/365 Am confused now as to how to calculate this. Would i need to convert the DataDiff into a different data type?