DataDriven
LearnPracticeInterviewDiscussDaily

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

Domain
SQL
Difficulty
medium
Seniority
L4

Problem

For each department, compute the ratio of senior employees (fiscal year before 2021) to junior employees (fiscal year 2026 or later). Show the department, senior count, junior count, and the ratio.

Summary

The ratio tells you a lot about the department.

Practice This Problem

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

Related

  • All Practice Problems
  • Mock Interview Mode
  • SQL Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons