Hi,
I have the query like
SELECT mp.* FROM dbo.PropertDetail mp LEFT JOIN dbo.PeropertyKey mk ON mp.KeyID = mk.KeyID WHERE mk.PropertyTime >= (SELECT DATEADD(HH, -2, MAX(PropertyTime)) FROM PropertyKey) AND error<>0
Error: Transaction (Process ID 60) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction
When I process this SQL stmt in a ETL package I'm getting the above error.