predict_fix
This commit is contained in:
parent
3440ba39fe
commit
a10d61856c
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ SELECT
|
|||
COALESCE(COUNT(r.id) FILTER (
|
||||
WHERE r.military_registration_date >= ys.year_date
|
||||
AND r.military_registration_date < ys.year_date + INTERVAL '1 year'
|
||||
AND DATE_PART('year', AGE(r.system_create_date, r.birth_date)) < 18
|
||||
AND DATE_PART('year', AGE(r.military_registration_date, r.birth_date)) < 18
|
||||
), 0) AS reaching_17_age,
|
||||
COALESCE(COUNT(r.id) FILTER (
|
||||
WHERE r.military_registration_date >= ys.year_date
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue