SELECt SourceId,RecordId,StartDate,EndDate , DATEDIFF(mi,a.EndDate,b.StartDate) DiffMinFROM table aLEFT JOIN table b ON A.no = B.no+1

SELECt SourceId,RecordId,StartDate,EndDate , DATEDIFF(mi,a.EndDate,b.StartDate) DiffMinFROM table aLEFT JOIN table b ON A.no = B.no+1