1
0
Fork 0

using concat_ws to join textual columns from PSQL. When using || to perform the concatenation, Null columns makes the operation result to be Null

This commit is contained in:
Claudio Atzori 2020-09-24 10:42:47 +02:00
parent 9e3e93c6b6
commit 9a7e72d528
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ SELECT
dc.officialname AS collectedfromname,
d.typology||'@@@dnet:datasource_typologies' AS datasourcetype,
'sysimport:crosswalk:entityregistry@@@dnet:provenance_actions' AS provenanceaction,
d.issn || ' @@@ ' || d.eissn || ' @@@ ' || d.lissn AS journal
concat_ws(' @@@ ', issn, lissn, eissn) AS journal
FROM dsm_datasources d