About 56 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 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?

  4. sql - Datediff between 2 columns in same table - Stack Overflow

    Datediff between 2 columns in same table Asked 12 years, 7 months ago Modified 3 years, 8 months ago Viewed 48k times

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

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

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

  8. 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 am trying usi...

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

  10. sql server - datediff rounding - Stack Overflow

    I have a db table in SQL Server which contains a start date for a project. On a web status page I want to show how many days/weeks/months the project has run, the units depending on the duration. So