Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 07-21-2016 02:42 PM
I need to delete records on a phoenix table based on the join with another phoenix table. Is it possible?
If so can anyone provide the syntax. i dont see a direct way of doing this
Created 07-21-2016 05:43 PM
Some join queries can be rewritten like this:-
delete from source1 where (pk1,pk2) in (select pk1,pk2 from source2);
Created 07-21-2016 05:43 PM
Some join queries can be rewritten like this:-
delete from source1 where (pk1,pk2) in (select pk1,pk2 from source2);
Created 07-22-2016 04:57 AM
Thanks Ankit, it works. but is it the effective way if we have large number of rows. AS we are using an IN condition in the query.