Sql distinct email regex

This article is tagged with: Sql distinct email regex and mysql

sql distinct email regex

/*Return distinct email domain name using regular expression*/
SELECT DISTINCT (REGEXP_SUBSTR (EMAIL_ADDR, '(@)\w+[\.-]\w+\.?\w+\.?\w+'))
FROM SCHEMA.TABLE_NAME;

This article is tagged with: Sql distinct email regex and mysql