This commit is contained in:
Ruslan 2025-04-08 12:05:20 +03:00
parent 97054be543
commit a9e84be4e8
5 changed files with 10 additions and 20 deletions

View file

@ -513,14 +513,13 @@ summary_all AS (
recruitment_id,
registered,
convicts,
gender,
'ALL' AS gender,
SUM(study) AS study,
SUM(work) AS work,
SUM(no_info) AS no_info,
SUM(total_people) AS total_people
FROM summary
WHERE gender in ('M', 'W') and convicts in ('CONVICT', 'NOTCONVICT')
GROUP BY recruitment_id, registered, convicts, gender
GROUP BY recruitment_id, registered, convicts
UNION ALL
@ -534,7 +533,6 @@ summary_all AS (
SUM(no_info) AS no_info,
SUM(total_people) AS total_people
FROM summary
WHERE convicts in ('ALL')
GROUP BY recruitment_id, registered
)
SELECT

View file

@ -513,14 +513,13 @@ summary_all AS (
recruitment_id,
registered,
convicts,
gender,
'ALL' AS gender,
SUM(study) AS study,
SUM(work) AS work,
SUM(no_info) AS no_info,
SUM(total_people) AS total_people
FROM summary
WHERE gender in ('M', 'W') and convicts in ('CONVICT', 'NOTCONVICT')
GROUP BY recruitment_id, registered, convicts, gender
GROUP BY recruitment_id, registered, convicts
UNION ALL
@ -534,7 +533,6 @@ summary_all AS (
SUM(no_info) AS no_info,
SUM(total_people) AS total_people
FROM summary
WHERE convicts in ('ALL')
GROUP BY recruitment_id, registered
)
SELECT

View file

@ -513,14 +513,13 @@ summary_all AS (
recruitment_id,
registered,
convicts,
gender,
'ALL' AS gender,
SUM(study) AS study,
SUM(work) AS work,
SUM(no_info) AS no_info,
SUM(total_people) AS total_people
FROM summary
WHERE gender in ('M', 'W') and convicts in ('CONVICT', 'NOTCONVICT')
GROUP BY recruitment_id, registered, convicts, gender
GROUP BY recruitment_id, registered, convicts
UNION ALL
@ -534,7 +533,6 @@ summary_all AS (
SUM(no_info) AS no_info,
SUM(total_people) AS total_people
FROM summary
WHERE convicts in ('ALL')
GROUP BY recruitment_id, registered
)
SELECT

View file

@ -513,14 +513,13 @@ summary_all AS (
recruitment_id,
registered,
convicts,
gender,
'ALL' AS gender,
SUM(study) AS study,
SUM(work) AS work,
SUM(no_info) AS no_info,
SUM(total_people) AS total_people
FROM summary
WHERE gender in ('M', 'W') and convicts in ('CONVICT', 'NOTCONVICT')
GROUP BY recruitment_id, registered, convicts, gender
GROUP BY recruitment_id, registered, convicts
UNION ALL
@ -534,7 +533,6 @@ summary_all AS (
SUM(no_info) AS no_info,
SUM(total_people) AS total_people
FROM summary
WHERE convicts in ('ALL')
GROUP BY recruitment_id, registered
)
SELECT

View file

@ -513,14 +513,13 @@ summary_all AS (
recruitment_id,
registered,
convicts,
gender,
'ALL' AS gender,
SUM(study) AS study,
SUM(work) AS work,
SUM(no_info) AS no_info,
SUM(total_people) AS total_people
FROM summary
WHERE gender in ('M', 'W') and convicts in ('CONVICT', 'NOTCONVICT')
GROUP BY recruitment_id, registered, convicts, gender
GROUP BY recruitment_id, registered, convicts
UNION ALL
@ -534,7 +533,6 @@ summary_all AS (
SUM(no_info) AS no_info,
SUM(total_people) AS total_people
FROM summary
WHERE convicts in ('ALL')
GROUP BY recruitment_id, registered
)
SELECT