Microsoft security protocols require a regular audit of user accounts to ensure only internal corporate emails are associated with administrative privileges.
Your task is to identify all users who have a valid internal email address. A valid internal email address must end with the specific domain suffix: @thequerylab.com.
| user_id(INTEGER) | name(VARCHAR) | email(VARCHAR) |
|---|---|---|
| 1 | Alice | [email protected] |
| 2 | Bob | [email protected] |
| 3 | Charlie | [email protected] |
| 4 | David | [email protected] |
| 5 | Eve | [email protected] |
| 6 | Frank | [email protected] |
| user_id(INTEGER) | is_active(BOOLEAN) |
|---|---|
| 1 | true |
| 2 | true |
| 4 | false |
| log_id(INTEGER) | user_id(INTEGER) | login_date(DATE) |
|---|---|---|
| 101 | 1 | 2026-02-01 |
| 102 | 1 | 2026-02-05 |
| user_id(INTEGER) | name(VARCHAR) | email(VARCHAR) |
|---|---|---|
| 1 | Alice | [email protected] |
| 4 | David | [email protected] |