i want compare two datetime and find minutes in sql
Emample:
then i want output like this: 180 minutes
How can possible ??
SQL
DECLARE @Table TABLE([Date1] DATETIME, [Date2] DATETIME) INSERT INTO @Table VALUES('10/22/2014 20:00:00.000','10/22/2014 23:00:00.000') SELECT DATEDIFF(MINUTE, Date1, Date2) AS DiffInMin FROM @Table
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.