Write a solution to find all the valid email addresses. A valid email address meets the following criteria:
@
symbol..com
.@
symbol contains only alphanumeric characters and underscores.@
symbol and before .com
contains a domain name that contains only letters.Return the result table ordered by user_id
in ascending order.
^
: ~로 시작하는[A-Za-z0-9_]
: A
~ Z
+ a
~ z
+ 숫자 + _
만 허용\.
: .
표시$
: ~로 끝나는SELECT user_id, email FROM Users
WHERE REGEXP_LIKE(email, '^[A-Za-z0-9_]+@[A-Za-z]+\.com$')
ORDER BY user_id;