About 20,700 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 DateDifference in a where clause - Stack Overflow

    DateDiff is extremely fast... Your problem is you are running it on the database table column value, so the query processor must run the function on every row in the table, even if there …

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

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

  5. Diferença entre duas datas em dias, horas, minutos e segundos

    Jun 7, 2015 · Problema: Como realizar a subtração entre duas datas e retornar o valor em Dias, Horas, Minutos e Segundos em uma consulta SQL com SQL Server 2014? Exemplo: Dados: …

  6. redcap - Datediff function with today and survey-date-completed …

    Sep 15, 2024 · Datediff function with today and survey-date-completed keeps returning false Asked 10 months ago Modified 9 months ago Viewed 450 times

  7. How to get the average of a DATEDIFF ()? - Stack Overflow

    Jul 20, 2015 · I have the following query: SELECT DATEDIFF(day, DateUsed, DateExpires) AS DaysBetweenExpirationAndUse FROM tblOffer How could i get the average number of days …

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

  9. How to calculate Date difference in Hive - Stack Overflow

    May 29, 2015 · Thanks for you reply. In the Language Manual, it specified that the datediff function calculate difference between string types. Does it work for Timestamp type as well?

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

    I have a table as follows: Filename - varchar Creation Date - Date format dd/mm/yyyy hh24:mi:ss Oldest cdr date - Date format dd/mm/yyyy hh24:mi:ss How can I calcuate the difference in …

Refresh