In T-SQL I used to be able to do the following:
delete t1
from table1 t1
join table2 t2 on t1.rowid = t2.rowid and t1.value <> t2.value
I'd like to be able to do the same in SAS.
taking the code above and wrapping in proc sql; and quit; throws a syntax error.
Is below my only option ?
proc sql;
delete from table1 t1
where t1.value <> (select t2.value from table2 t2 where t1.rowid = t2.rowid)
and t1.rowid in (select t2.rowid from table t2);
quit;
Thank you.