diff --git a/database/sql/vues/Proprietaire.sql b/database/sql/vues/Proprietaire.sql index 30e79827..e25720b8 100644 --- a/database/sql/vues/Proprietaire.sql +++ b/database/sql/vues/Proprietaire.sql @@ -120,7 +120,7 @@ CREATE MATERIALIZED VIEW #schema_cadastrapp.proprietaire AS WHEN gtoper = '2' THEN trim(ddenom) END AS app_nom_usage, CASE - WHEN gtoper = '1' THEN COALESCE(rtrim(dqualp),'')||' '||COALESCE(rtrim(dnomlp),'')||' '||COALESCE(rtrim(dprnlp),'') + WHEN gtoper = ''1'' THEN COALESCE(rtrim(dqualp),'''')||'' ''||REPLACE(rtrim(ddenom),''/'','' '') WHEN gtoper = '2' THEN trim(ddenom) END AS app_nom_naissance, prop_ccodro.ccodro, diff --git a/database/sql/vues_dblink/Proprietaire.sql b/database/sql/vues_dblink/Proprietaire.sql index 1e9c3268..1d7df9df 100644 --- a/database/sql/vues_dblink/Proprietaire.sql +++ b/database/sql/vues_dblink/Proprietaire.sql @@ -118,7 +118,7 @@ CREATE MATERIALIZED VIEW #schema_cadastrapp.proprietaire AS WHEN gtoper = ''2'' THEN trim(ddenom) END AS app_nom_usage, CASE - WHEN gtoper = ''1'' THEN COALESCE(rtrim(dqualp),'''')||'' ''||COALESCE(rtrim(dnomlp),'''')||'' ''||COALESCE(rtrim(dprnlp),'''') + WHEN gtoper = ''1'' THEN COALESCE(rtrim(dqualp),'''')||'' ''||REPLACE(rtrim(ddenom),''/'','' '') WHEN gtoper = ''2'' THEN trim(ddenom) END AS app_nom_naissance, prop_ccodro.ccodro,