select * from table2 where Location in (select location frrom table)
or select t2.* from table2 t2 join table1 t1 on t1.location = t2.location
========================================== Cursors are useful if you don't know sql. SSIS can be used in a similar way. Beer is not cold and it isn't fizzy.