I have two tables which have member data (linked with 'member_id' column)
I need to search for all records where the email
column ends in '.pl'. I then need to delete all records from the two tables for this (based on the 'member_id').
Is it possible to complete this in one SQL statement?
SELECT member_id
FROM exp_members
WHERE email LIKE '%.pl'