From a475cfcb7b4490d748c25c3cae611e3f9d126bf8 Mon Sep 17 00:00:00 2001 From: dimitrispie Date: Wed, 21 Jun 2023 10:42:02 +0300 Subject: [PATCH] Update step16-createIndicatorsTables.sql Rename a field in indi_pub_interdisciplinarity --- .../oozie_app/scripts/step16-createIndicatorsTables.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step16-createIndicatorsTables.sql b/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step16-createIndicatorsTables.sql index 2a4742fac..36b34cc3c 100755 --- a/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step16-createIndicatorsTables.sql +++ b/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step16-createIndicatorsTables.sql @@ -746,11 +746,11 @@ select rf.id, count(distinct lvl3) totals from result_fos rf group by rf.id; create table if not exists indi_pub_interdisciplinarity as -select distinct p.id as id, coalesce(indi_pub_is_interdisciplinary, 0) -as indi_pub_is_interdisciplinary +select distinct p.id as id, coalesce(is_interdisciplinary, 0) +as is_interdisciplinary from pub_fos_totals p left outer join ( -select pub_fos_totals.id, 1 as indi_pub_is_interdisciplinary from pub_fos_totals +select pub_fos_totals.id, 1 as is_interdisciplinary from pub_fos_totals where totals>1) tmp on p.id=tmp.id; drop table pub_fos_totals purge;