Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Top N Per Group with Window Functions

Medium
SQL & Data ManipulationWindow FunctionsRankingGroup By

Problem

Write a SQL query to find the top N records per group using window functions.

Practicing as: Software Engineer interview at Striveworks

Hi, I'll play your Striveworks interviewer for the Software Engineer role. Candidates describe these interviews as often stressful and moderately difficult, so expect me to be direct and to the point. Take your time with the question above and answer like we're in the room.

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
Next questions
Top N Per Group with WindowsMediumFidelity InvestmentsTop N Per Group with WindowsMediumTop N Per Group SQLMedium