delete records from a table based on data from a different table

Posted by every_answer_gets_a_point on Stack Overflow See other posts from Stack Overflow or by every_answer_gets_a_point
Published on 2010-05-21T18:53:03Z Indexed on 2010/05/21 19:00 UTC
Read the original article Hit count: 116

Filed under:
|

table1 has column CITY and COUNTRY. table2 has column CITY.

how do i delete from table2 all records that have CITY in common with table1 but also the COUNTRY='Russia' ??

please keep in mind that both tables have about 1 million rows of data

© Stack Overflow or respective owner

Related posts about mysql

Related posts about sql