PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches

Quick Overview

This question evaluates proficiency in SQL event-log aggregation and basic Python data-structure transformations, assessing competencies such as counting distinct users, identifying frequent event types, and performing dictionary/list/string manipulations.

  • Medium
  • Adobe
  • Data Manipulation (SQL/Python)
  • Data Scientist

Solve SQL and Python Data Manipulation Tasks

Company: Adobe

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Onsite

UserEvents +----+---------+------------+------------+ | id | user_id | event_type | event_date | +----+---------+------------+------------+ | 1 | 101 | install | 2023-05-01 | | 2 | 101 | open_app | 2023-05-01 | | 3 | 102 | install | 2023-05-01 | | 4 | 103 | install | 2023-05-02 | | 5 | 103 | share | 2023-05-02 | +----+---------+------------+------------+ ##### Scenario Technical screen requiring simple SQL queries and basic Python data-structure manipulations on app event data. ##### Question SQL: 1) Count distinct daily active users. 2) Return the three most common event_type values yesterday. 3) List users whose first recorded event was 'install'. Python: a) Given a dict, produce an inverted dict (values→keys). b) Remove duplicates from a list in one line. c) Reverse a string in one line. ##### Hints Use GROUP BY with DISTINCT, ORDER BY … DESC LIMIT, window/aggregation for first_event; in Python leverage dict comprehensions, set(), slicing[::-1].

Quick Answer: This question evaluates proficiency in SQL event-log aggregation and basic Python data-structure transformations, assessing competencies such as counting distinct users, identifying frequent event types, and performing dictionary/list/string manipulations.

Last updated: Mar 29, 2026

Related Coding Questions

  • Implement scalable word count locally - Adobe (Medium)

Loading coding console...

PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.