SQL éviter les doublons dans l'insertion dans SELECT
INSERT INTO OldCustomers(customer_id, age)
SELECT customer_id, age
FROM Customers
WHERE NOT EXISTS(
SELECT customer_id
FROM OldCustomers
WHERE OldCustomers.customer_id = Customers.customer_id
);
SAMER SAEID