Here’s what I want to do:
INSERT INTO History
SELECT [Imported].[Price] AS Price, [Imported].[Date] AS [Date]
FROM Imported;
DELETE Imported.*
FROM Imported;
BUT I only want to run the DELETE if the INSERT worked. Does SQL have the capability to check things that ran before and conditionally run other things? e.g. IF abc THEN def