From 092631b7d4c70efcde2f18ae9d7d54272aca3f3f Mon Sep 17 00:00:00 2001 From: Barry Daniels <101455655+barrydaniels-nl@users.noreply.github.com> Date: Mon, 11 Mar 2024 09:59:04 +0100 Subject: [PATCH] fixed sql errors (#980) Co-authored-by: Barry Daniels --- datasets/dataverkenner/betrokkenbij/dataset.sql | 3 ++- datasets/dataverkenner/betrokkenbijm/dataset.sql | 3 ++- datasets/dataverkenner/isontstaanuit/dataset.sql | 3 ++- datasets/dataverkenner/isontstaanuitm/dataset.sql | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/datasets/dataverkenner/betrokkenbij/dataset.sql b/datasets/dataverkenner/betrokkenbij/dataset.sql index 211cf0f61..07a86abf0 100644 --- a/datasets/dataverkenner/betrokkenbij/dataset.sql +++ b/datasets/dataverkenner/betrokkenbij/dataset.sql @@ -1,5 +1,6 @@ create or replace view public.dataverkenner_betrokkenbij_betrokkenbij WITH (security_barrier) as -SELECT +SELECT + kot1.id, kot1.identificatie, kot1.volgnummer, kot1.kadastrale_aanduiding, diff --git a/datasets/dataverkenner/betrokkenbijm/dataset.sql b/datasets/dataverkenner/betrokkenbijm/dataset.sql index 3186c5bb4..23d07714b 100644 --- a/datasets/dataverkenner/betrokkenbijm/dataset.sql +++ b/datasets/dataverkenner/betrokkenbijm/dataset.sql @@ -1,5 +1,6 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS public.dataverkenner_betrokkenbijm_betrokkenbij as SELECT + kot1.id, kot1.identificatie, kot1.volgnummer, kot1.kadastrale_aanduiding, @@ -14,4 +15,4 @@ LEFT JOIN brk_2_kadastraleobjecten kot2 ON ontstaan_uit.kadastraleobjecten_id WHERE ontstaan_uit.eind_geldigheid IS NULL AND kot1.datum_actueel_tot IS NULL AND kot2.datum_actueel_tot IS NULL -; \ No newline at end of file +WITH NO DATA; \ No newline at end of file diff --git a/datasets/dataverkenner/isontstaanuit/dataset.sql b/datasets/dataverkenner/isontstaanuit/dataset.sql index be3117f03..6a93dbc1a 100644 --- a/datasets/dataverkenner/isontstaanuit/dataset.sql +++ b/datasets/dataverkenner/isontstaanuit/dataset.sql @@ -1,5 +1,6 @@ create or replace view public.dataverkenner_isontstaanuit_isontstaanuit WITH (security_barrier) as -SELECT kot.id AS "id", +SELECT +kot.id AS "id", kot.identificatie AS "identificatie", kot.neuron_id AS "neuron_id", kot.volgnummer AS "volgnummer", diff --git a/datasets/dataverkenner/isontstaanuitm/dataset.sql b/datasets/dataverkenner/isontstaanuitm/dataset.sql index 595793754..4e50b942d 100644 --- a/datasets/dataverkenner/isontstaanuitm/dataset.sql +++ b/datasets/dataverkenner/isontstaanuitm/dataset.sql @@ -1,5 +1,6 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS public.dataverkenner_isontstaanuitm_isontstaanuit AS -SELECT kot.id AS "id", +SELECT +kot.id AS "id", kot.identificatie AS "identificatie", kot.neuron_id AS "neuron_id", kot.volgnummer AS "volgnummer",