I have 3 tables:
- user --> primary key = user_id
- account --> primary key = account_id
- user_account_join_table --> foreign key = user_id, foreign key = account_id
How can I delete all associated entries from all 3 tables when I only know user_id? One user can have many accounts and I would like to delete user and all of the accounts with one SQL statement, knowing only user_id.