Categories
Why doesn't count(extract stack) and how can I replace it?
you need to get the number of identical months select count(extract(month from birth_date)) as pupils from pupil group by pupils having count(*) > 1
Answer the question
In order to leave comments, you need to log in
In theory, everything is solved here by the correct grouping:
select pupils, extract(month from birth_date), count(1) as pupils from pupil group by pupils, extract(month from birth_date) having count(1) > 1
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question