Loading...

Duplicated User Event Messages

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

Domain
SQL
Difficulty
medium
Seniority
junior

Problem

We need a load-testing replay tool that doubles every row from the 'user-events' topic. For each row, produce two identical copies showing the message ID, topic, partition key, payload, produced timestamp, and consumer. The output should be ordered by message ID.

Practice This Problem

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