MetallicCloud
Programmer
Hello,
I have a simple question...
Is it possible to either put the following statements into a single query, or create another query that will run all three of these...
CREATE TABLE ClosedStudio(
StudioID number PRIMARY KEY, Name text(30), Country text(20));
INSERT INTO ClosedStudio
SELECT s.StudioID AS StudioID, s.Name AS Name, s.Country AS Country FROM Studio AS s WHERE ClsYear Is Not Null;
DELETE s FROM Studio AS s
WHERE s.ClsYear Is Not Null;
Cheers
I have a simple question...
Is it possible to either put the following statements into a single query, or create another query that will run all three of these...
CREATE TABLE ClosedStudio(
StudioID number PRIMARY KEY, Name text(30), Country text(20));
INSERT INTO ClosedStudio
SELECT s.StudioID AS StudioID, s.Name AS Name, s.Country AS Country FROM Studio AS s WHERE ClsYear Is Not Null;
DELETE s FROM Studio AS s
WHERE s.ClsYear Is Not Null;
Cheers