INSERT INTO employees_archive (id, first_name, last_name, email) SELECT id, first_name, last_name, email FROM employees WHERE hire_date < '2023-01-01';
You can also insert data into a table from another table using a SELECT statement.
Clickable & Draggable!