Calculating a Difference between Two Dates in Minutes.

Posted by vishalneeraj-24503 under Sql Server category on | Points: 40 | Views : 395
If we want to find out the difference in terms on minutes,then just divide the below result by 60.

SELECT (UNIX_TIMESTAMP(dt2) - UNIX_TIMESTAMP(dt1))/60 from table_name;

Comments or Responses

Login to post response