AnalystPath

Users Who Viewed on First Login Day

SQLMediumMid levelPalantir~15 min

Problem

**[Asked at Palantir]**

Palantir's growth team wants to identify highly-engaged new users.
Find all users who visited at least one page **on the same day they first logged in**.

Return `user_id`, ordered ascending.

Tables

Example rows — the live problem includes the full dataset.

users
user_idfirst_login
page_views
view_iduser_idview_date

Expected output

Your answer should return 3 rows with the columns user_id.

Starter code (SQL)

SELECT *
FROM users;

Solve this SQL question free

Write SQL and run it instantly in your browser — even on your phone. No signup needed to try.

Solution & explanation

Create a free account to unlock the optimal solution, a step-by-step explanation, and the hidden test cases that grade your answer.

Sign up free to unlock

Related SQL questions