IO-1477 Update to joblines_status view.

This commit is contained in:
Patrick Fic
2022-04-22 15:14:02 -07:00
parent f72169d98f
commit a1f6f2fe4c
5 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
CREATE OR REPLACE VIEW "public"."joblines_status" AS
SELECT j.jobid,
j.status,
count(1) AS count,
j.part_type
FROM joblines j
WHERE ((j.part_type IS NOT NULL) AND (j.part_type <> 'PAE'::text) AND (j.removed IS false))
GROUP BY j.jobid, j.status, j.part_type;