Home Forums SQL Server 2012 SQL Server 2012 - T-SQL Identify Start Date / End Date in a date column RE: Identify Start Date / End Date in a date column
Phil Parkin
SSC Guru
Points: 247210
More actions
December 4, 2016 at 3:14 pm
#1915931
Well done. I compared execution plans and my version seems to have the edge. Especially if you add an index on (requestid, eventdate, eventname). Might be worth testing both on a larger dataset and seeing what happens.