how to create duplicate table in sql code example
Example 1: sql how to duplicate a table
CREATE TABLE new_table LIKE original_table;
INSERT INTO new_table SELECT * FROM original_table;
Example 2: duplicate in sql
• SELECT first_name, COUNT (first_name) FROM employees
GROUP BY first_name
HAVING (COUNT(first_name) > 1);