mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:27:09 +00:00
Project summary: return count of final (not raw) shots
This commit is contained in:
@@ -14,7 +14,7 @@ SELECT * FROM projects,
|
||||
(SELECT COUNT(DISTINCT sequence) FROM final_lines) AS sequences,
|
||||
(SELECT COUNT(*) from (
|
||||
SELECT DISTINCT fl.line, fs.point
|
||||
FROM raw_lines fl INNER JOIN final_shots fs USING (sequence)) AS t) AS unique_shots,
|
||||
FROM final_lines fl INNER JOIN final_shots fs USING (sequence)) AS t) AS unique_shots,
|
||||
(SELECT COUNT(*) FROM final_shots) AS total_shots,
|
||||
(SELECT COUNT(*) FROM preplot_points WHERE class = 'S') AS preplot_points) info
|
||||
WHERE current_setting('search_path') LIKE projects.schema||'%';
|
||||
|
||||
Reference in New Issue
Block a user