Declare @T1 DATETIME, @T2 DATETIME Select @T1='2012-06-01 01:40:00.000', @T2= '2012-06-01 02:30:00.000' If (DateDiff(Minute,@T1, @T2) >0) Select 'Data already available for this period!' [Status] Else Select 'New Data!' [Status]
Ajayajaypatelfromsanthal.blogspot.in
Login to post response