Difference of two date time in sql server -


Is there a way to distinguish between sql server in two datetime ?

For example, my dates are

  1. 2010-01-22 15: 29: 55.090
  2. 2010-01- 22 15: 30: 09.153

Therefore, the result should be 14.063 seconds .

1, because this limit is from January to February It has crossed, though this period is 2 days, the value of dated 1 Sessions will - it has exceeded 1 date.

  Dates selected (mile, '2010-01-22 15: 29: 55.090', '2010-01-22 15: 30: 09.153')  
< P> returns 1, again, it passes a one-minute limit, so also it is about 14 seconds, while using the minutes as units it will be returned in the form of a minute.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -