1. Create database
create database dead_lock_lab
go
2. create table & row data
USE dead_lock_lab;
CREATE TABLE dbo.invoices (
id int NOT NULL,
num nvarchar(20) NOT NULL,
customer nvarchar(100) NOT NULL,
created_at datetime NOT NULL,
updated_at datetime NOT NULL,
CONSTRAINT PK_invoices PRIMARY KEY (id)
);