Loading...

Users With Admin Tokens

A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.

Domain
SQL
Difficulty
medium

Problem

Find every user who owns at least one API token whose scope contains the substring 'admin'. Return the user_id, username, email, token_id, and the token's scope. Sort by user_id ascending.

Practice This Problem

Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.