English

Consider the given SQL Query: SELECT department, COUNT(*) FROM employees HAVING COUNT(*) > 5 GROUP BY department; Saanvi is executing the query but not getting the correct output. Write the correction - Computer Science (Python)

Advertisements
Advertisements

Question

Consider the given SQL Query:

SELECT department, COUNT(*) FROM employees HAVING COUNT(*) > 5 GROUP BY department;

Saanvi is executing the query but not getting the correct output. Write the correction.

Very Short Answer
Advertisements

Solution

SELECT department, COUNT(*) FROM employees GROUP BY department HAVING COUNT(*) > 5;

shaalaa.com
  Is there an error in this question or solution?
2025-2026 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×