Background:
i have 2 tables:
Components: (id, name)
Dependencies: (id, hasaComponentId, isaComponentId)
in this case the hasaComponentId and isaComponentId are both foreign keys into the components table joined by components.id
Question
i have a set of Ids that the user selects. I want a sql query that will delete records from the dependencies tables where any of the ids in my list of ids is either in the hasaComponentId field or the isaComponentId field.
what is the best sql for this action?