SELECT * FROM
me_account_site
WHERE NOT EXISTS (SELECT * FROM
me_site
WHERE me_account_site.siteId = me_site.siteId);
Note: There is a problem with the order of me_account_site and me_site. When the first position is me_account_site, the second position cannot be repeated, that is, crossed.