fixed query for organisations' pids
This commit is contained in:
parent
f6ccd54d87
commit
9a20057615
|
@ -25,7 +25,7 @@ SELECT
|
|||
o.country || '@@@dnet:countries' AS country,
|
||||
array[]::text[] AS alternativenames,
|
||||
'sysimport:crosswalk:entityregistry@@@dnet:provenance_actions' AS provenanceaction,
|
||||
array_agg(DISTINCT i.pid || '###' || i.issuertype || '@@@dnet:pid_types') AS pid
|
||||
array_remove(array_agg(DISTINCT i.pid || '###' || i.issuertype || '@@@' || i.issuertype), NULL) AS pid
|
||||
FROM dsm_organizations o
|
||||
LEFT OUTER JOIN dsm_datasources d ON (d.id = o.collectedfrom)
|
||||
LEFT OUTER JOIN dsm_organizationpids p ON (p.organization = o.id)
|
||||
|
@ -51,4 +51,4 @@ GROUP BY
|
|||
o.trust,
|
||||
d.id,
|
||||
d.officialname,
|
||||
o.country;
|
||||
o.country
|
||||
|
|
Loading…
Reference in New Issue