New
The Learning module is now live
See what's new
×
Question Bank
Learning
NEW
Pricing
Blog
Forum
HOT
JobRadar
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Microsoft
SQL Question
AI Insights
Quick Summary
Identify departments that contain more than one employee.
Calculate the total number of employees per department.
Return results sorted alphabetically by department name.
What This Tests
Grouping data by categorical columns
Filtering aggregated results using thresholds
Sorting output based on string values
Understanding aggregation scope versus row-level filtering
Common Patterns
Aggregation
HAVING Filter
Groupby
Sort
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.7-Flash
0/2000
Run
Submit
Test Cases
SQL Schema
Pandas Schema
Input
-
Output
-
Expected
-