Validating email in SQL
IntuitionDisplay the user id and email id so we need to project user id and email.ApproachTo validate email id we need to use the regular expressions. It can be
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->
Display the user id and email id so we need to project user id and email.

# Approach
<!-- Describe your approach to solving the problem. -->
To validate email id we need to use the regular expressions. It can be done by using REGEXP along with where condition.

# Complexity
- Time complexity: $$O(n*log(n)$$)
<!-- Add your time complexity here, e.g. $$O(n)$$ -->


# Code
```mysql []
# Write your MySQL query statement below
SELECT user_id, email
FROM Users
WHERE email REGEXP '^[A-Za-z0-9_]+@[A-Za-z][A-Za-z]*\\.com
```
order by user_id;
```
['MySQL']