Top Pattern Matches

A medium SQL mock interview question on DataDriven, with an AI interviewer who asks follow-up questions and a hire or no-hire decision at the end.

Domain
SQL
Difficulty
medium
Seniority
L4

Interview Prompt

Some of our log messages contain a reference number, a short code with a dash in the middle. Using `server_logs`, find the 10 servers with the most messages that contain one, highest first, along with each server's match count.

Summary

A needle in a haystack, but how many haystacks?

How This Interview Works

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write and run your SQL against a real database
  4. Answer the interviewer's follow-up questions, then get a hire or no-hire decision