Posting from FF (51.0.1), copy paste from SSMS. CREATE OR ALTER PROCEDURE RunTimeTests AS BEGIN SELECT Taskid, MIN(StartTime), MAX(EndTime), DATEDIFF(MINUTE, MIN(StartTime), MAX(EndTime)) FROM TimeTests GROUP BY Taskid; END; GO
Viewing 0 posts
You must be logged in to reply to this topic. Login to reply