fix
This commit is contained in:
parent
97054be543
commit
a9e84be4e8
5 changed files with 10 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue