About 58 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. TSQL DateDiff to return number of days with 2 decimal places

    TSQL DateDiff to return number of days with 2 decimal places Asked 14 years, 1 month ago Modified 7 years, 7 months ago Viewed 84k times

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

  5. sql server - How to get difference of days/months/years (datediff ...

    I am looking for a way to implement the SQLServer-function datediff in PostgreSQL. That is, this function returns the count (as a signed integer value) of the specified datepart boundaries crossed

  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 DateDiff without weekends and public holidays

    I am looking for solution how to select number of days between two dates without weekends and public holidays. So far I have this: SELECT evnt.event_id, evnt.date_from, evnt.date_to...

  8. How to cast the interval of DateDiff function of the SQL in to Datetime ...

    Aug 21, 2013 · i have a query that uses DateDiff function of the SQL.The interval returns min, hour or days according to how i put it. I want to return a Datetime datatype instead of the resulting integer …

  9. date - DATEDIFF de SQL Server - Stack Overflow en español

    Sep 21, 2020 · Me encuentro trabajando con SQL Server 2014 y Oracle 19c, necesito obtener la diferencia en microsegundos, segundos, minutos y horas entre dos fechas que tienen un rango de …

  10. DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0) Can someone …

    Jul 26, 2012 · 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).