Hello, Why is this query not working?
Delete tblProduct
From tblProduct
Inner Join @unwantedRows
On tblProduct.ProductId = @unwantedRows.ProductId;
Where @unwantedRows
is
DECLARE @unwantedRows TABLE
(
ProductId INT,
ProductName VARCHAR(50),
Description VARCHAR(50),
Category VARCHAR(50),
Repetitions int
);
Thanks in advance :)