You can use the following or modified version of the code below:
select email_id, character_length(email_id) as email_length,
case
when email_length >15 then 'SUSPICIOUS'
else 'NON-SUSPICIOUS'
end as email_type
from
<TableName>
where
email_type = 'NON-SUSPICIOUS'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.