-- Rows with ID existing in both a and b -- JOIN is equivalent to INNER JOIN SELECT a.ID, a.NAME, b.VALUE1 FROM table1 a JOIN table2 b ON a.ID = b.ID WHERE a.ID >= 1000; -- ⇓ Test it ⇓ (Fiddle source link)