Demo Preparation 1 2Create Database [Deadlockdemo] 3go 4use [Deadlockdemo]; 5go 6CREATE TABLE dbo.invoices_demo ( 7 id int NOT NULL, 8 num nvarchar(20) NOT NULL, 9 customer nvarchar(100) NOT NULL, 10 created_at DateTime NOT NULL, 11 updated_at DateTime NOT NULL, 12 CONSTRAINT PK_invoices PRIMARY KEY (id) 13); 14...