sql delete two tables with inner join