i have two tables that are joined on a field rowid
i need to delete rows from calibration
that match a specific condition based on a different table
there are approximately 50000 rows in batchinfo
and 3 million rows in calibration
here is my sql statement:
delete from calibration where rowid in (
select calibration.rowid from batchinfo
join calibration on batchinfo.rowid=calibration.rowid
where reporttime not like '%2011%')
this is taking hours!!
what can i do to speed this up?