Skip to content

Commit c312f35

Browse files
committed
Update 1517. Find Users With Valid E-Mails.SQL
1 parent cb58a31 commit c312f35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

LeetCode SQL 50 Solution/1517. Find Users With Valid E-Mails.SQL

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,8 @@ The mail of user 5 has the # sign which is not allowed.
5959
The mail of user 6 does not have the leetcode domain.
6060
The mail of user 7 starts with a period.
6161

62+
SPLUTIONS:
6263

64+
SELECT *
65+
FROM Users
66+
WHERE REGEXP_LIKE(mail, '^[A-Za-z]+[A-Za-z0-9\_\.\-]*@leetcode\\.com$');

0 commit comments

Comments
 (0)