Du kan prøve
SELECT u.*
FROM Users u INNER JOIN
Domains d ON u.UserEmail LIKE '%'+ d.Domain
Eller endda prøv
SELECT u.*
FROM Users u
WHERE EXISTS(SELECT 1 FROM Domains d WHERE u.UserEmail LIKE '%' + d.Domain)
Du kan prøve
SELECT u.*
FROM Users u INNER JOIN
Domains d ON u.UserEmail LIKE '%'+ d.Domain
Eller endda prøv
SELECT u.*
FROM Users u
WHERE EXISTS(SELECT 1 FROM Domains d WHERE u.UserEmail LIKE '%' + d.Domain)