Du kan prova
SELECT u.*
FROM Users u INNER JOIN
Domains d ON u.UserEmail LIKE '%'+ d.Domain
Eller till och med prova
SELECT u.*
FROM Users u
WHERE EXISTS(SELECT 1 FROM Domains d WHERE u.UserEmail LIKE '%' + d.Domain)
Du kan prova
SELECT u.*
FROM Users u INNER JOIN
Domains d ON u.UserEmail LIKE '%'+ d.Domain
Eller till och med prova
SELECT u.*
FROM Users u
WHERE EXISTS(SELECT 1 FROM Domains d WHERE u.UserEmail LIKE '%' + d.Domain)