Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
akrai37 authored Apr 27, 2020
1 parent c626aed commit f2a804f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 61Task-3.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SELECT
YEAR(d.from_date) AS calendar_year,
e.gender,
COUNT(e.emp_no) AS num_of_employees
FROM
t_employees e
JOIN
t_dept_emp d ON d.emp_no = e.emp_no
GROUP BY calendar_year , e.gender
HAVING calendar_year >= 1990
ORDER BY calendar_year;

0 comments on commit f2a804f

Please sign in to comment.