I have a table called notification, with two columns:
- provider
The values look like this:
- apple | [email protected]
- nbc | [email protected]
- nbc | [email protected]
- abc | [email protected]
- abc | [email protected]
For all providers that do not have the email [email protected], I want to insert another row with the provider and the email [email protected]. For example, in the above query, the result of the INSERT statement would be: INSERT INTO notification VALUES ('apple', '[email protected]').
I have a table with thousands of rows like this, how would I write such an INSERT statement?
abcalso lacks the email[email protected](but does have[email protected]).