From 60354d9be371f3d0c820ce91c577e52c975a621c Mon Sep 17 00:00:00 2001 From: bpasquer <benedicte.pasquer@utas.edu.au> Date: Wed, 18 Dec 2024 08:18:17 +1100 Subject: [PATCH] ep_m2_inverts:provide aliases for summmed vars --- db/endpoints/CreatePrivateEndpoints.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/endpoints/CreatePrivateEndpoints.sql b/db/endpoints/CreatePrivateEndpoints.sql index d0b145989..65fe4c4a7 100644 --- a/db/endpoints/CreatePrivateEndpoints.sql +++ b/db/endpoints/CreatePrivateEndpoints.sql @@ -840,8 +840,8 @@ species_name, taxon, reporting_name, bfc.nominal size_class, -sum(total), -sum(biomass) +sum(total) as total, +sum(biomass) as biomass from invert_sized m2 inner join bounded_fish_classes bfc on m2.size_class > bfc.lower_bound and m2.size_class <= bfc.upper_bound group by survey_id,country,area,ecoregion,realm,location,site_code,site_name,latitude,longitude,survey_date,depth,geom,