registrations has one row per signup email (email_id, user_id, signup_date) and verification_actions has one row per verification attempt (email_id, action_date, signup_action) where signup_action is 'Confirmed' or 'Not confirmed'; an email can have several attempts. Return the users who confirmed exactly on the calendar day after their signup date (a 'Confirmed' attempt dated signup_date + 1 day). Each user appears once. Output column: user_id. Order by user_id ascending.
| Column | Type |
|---|---|
| email_id | INTEGER |
| user_id | INTEGER |
| signup_date | DATE |
| email_id | user_id | signup_date |
|---|---|---|
| 1 | 10 | 2026-01-01 |
| 2 | 20 | 2026-01-01 |
| 3 | 30 | 2026-01-03 |
| Column | Type |
|---|---|
| email_id | INTEGER |
| action_date | DATE |
| signup_action | TEXT |
| email_id | action_date | signup_action |
|---|---|---|
| 1 | 2026-01-02 | Confirmed |
| 2 | 2026-01-03 | Confirmed |
| 3 | 2026-01-04 | Not confirmed |
| user_id |
|---|
| 10 |
Solve it in the live editor on this page — run on sample data, then submit against hidden tests.
‹ Campaign Engagement Percentage · Software Feature Event Counts ›
{{ totalCount }} questions in the style asked at Amazon, Microsoft, Google, Meta, Flipkart and more — {{ hardPct }}% Hard. Write SQL in a real database engine in your browser, run it on sample data, then evaluate against hidden tests.
Company tags show where this type of question is commonly reported in interviews. Questions, data and solutions are written by TechTown.
{{ cur.statement }}
No submissions yet. Press Evaluate to submit your query.
{{ solutionSql }}
{{ out.error }}
You have solved your 3 free questions — nice work! Log in (free) to unlock all 150 questions, keep your streak and appear on the leaderboard.