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 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

  6. SQL DateDifference in a where clause - Stack Overflow

    SELECT * FROM a WHERE DATEDIFF(D, a.DateValue, DateTimeNow) < 3; and not working I m trying to get the data that s not older than 3 days. SQL server. How to do this? DATEDIFF works too slow..

  7. 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).

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

  9. 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, 6 months ago Viewed 7k times

  10. t sql - How to calculate difference in hours (decimal) between two ...

    I have to calculate the difference in hours (decimal type) between two dates in SQL Server 2008. I couldn't find any useful technique to convert datetime to decimal with 'CONVERT' on MSDN. Can any...