You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ One SQL problem a day for a year
10
10
11
11
<!-- markdownlint-enable MD028 -->
12
12
> [!NOTE]
13
-
> `SQL Everyday` has been templatized into [`eevveerryyddaayy-template`](https://github.com/ggeerraarrdd/eevveerryyddaayy-template/), or simply `eevveerryyddaayy`. For more info, including instructions on installation, configruation and usage, go to [here](https://github.com/ggeerraarrdd/eevveerryyddaayy).
13
+
> `SQL Everyday` has been templatized into [`eevveerryyddaayy-template`](https://github.com/ggeerraarrdd/eevveerryyddaayy-template/), or simply `eevveerryyddaayy`. For more info, including instructions on installation, configuration and usage, go to [here](https://github.com/ggeerraarrdd/eevveerryyddaayy).
14
14
15
15
_SQL Everyday_ is a personal challenge to solve at least one SQL problem everyday for the next 365 days, starting from September 28, 2024.
16
16
@@ -30,6 +30,7 @@ The problems and both submitted and site solutions are documented in individual
30
30
31
31
## Index
32
32
33
+
<!--- cSpell:disable --->
33
34
<!-- Index Start - WARNING: Do not delete or modify this markdown comment. -->
34
35
| Day | Title | Solution | Site | Difficulty | NB |
@@ -186,7 +187,9 @@ The problems and both submitted and site solutions are documented in individual
186
187
| 151 |[Capital Gain/Loss](https://leetcode.com/problems/capital-gainloss/description/)|[Solution](solutions/151_capital_gainloss.md)| LeetCode | Medium ||
187
188
| 152 |[Daily Leads and Partners](https://leetcode.com/problems/daily-leads-and-partners/description/)|[Solution](solutions/152_daily_leads_and_partners.md)| LeetCode | Easy ||
188
189
| 153 |[Find Total Time Spent by Each Employee](https://leetcode.com/problems/find-total-time-spent-by-each-employee/description/)|[Solution](solutions/153_find_total_time_spent_by_each_employee.md)| LeetCode | Easy ||
Write a solution to find the users who have *valid emails*.
11
+
12
+
A valid e-mail has a prefix name and a domain where:
13
+
14
+
**The prefix name* is a string that may contain letters (upper or lower case), digits, underscore `'_'`, period `'.'`, and/or dash `'-'`. The prefix name *must* start with a letter.
15
+
* The domain is `'@leetcode.com'`.
16
+
17
+
Return the result table in *any order*. [[Full Description](https://leetcode.com/problems/find-users-with-valid-e-mails/description/)]
18
+
19
+
## Submitted Solution
20
+
21
+
```sql
22
+
-- Submitted Solution
23
+
SELECT
24
+
user_id
25
+
,name
26
+
,mail
27
+
FROM Users
28
+
WHERE mail ~ '^[a-zA-Z][a-zA-Z0-9._-]*@leetcode\.com$'
0 commit comments