Vertica DELETE columns from one table using data from another
How to delete columns from one table using data from another
May 30, 2013 · 7 min · 1379 words
My colleague had an issue in Vertica. He had a set of values in table 1 to be deleted based on the records in a table table2. I didn’t think this would be easy considering VERTICA didn’t support joins when doing deletes unlike MYSQL. But they do have something else. Let me take you through the steps I followed. I created the following table in which I have records
Then I realized there should be another way and used some documentation of Vertica and also checked out Vertica Forums if something was available.
And came up with this:```
delete from eakan where exists (select null from eakan_del where eakan_del.sec_id=eakan.sec_id and eakan_del.date=eakan.date and eakan_del.nameid=eakan.nameid);