Skip to content

Commit

Permalink
Merge pull request #1 from swinnoproject/firm-names
Browse files Browse the repository at this point in the history
  • Loading branch information
mathjoha authored Nov 9, 2024
2 parents 8d47b2b + 308321a commit 2df16d3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,17 @@ databases:
name_en,
year,
desc_sv,
group_concat(variantname) as firm_name
name as firm_name,
group_concat(variantname) as firm_name_variants
from
innovation as i
join innovation_entity as ei on i.id == ei.innovation_id
and ei.type == 1
join name_variant as nv on nv.source_id == ei.entity_id
join entity as e on e.id == ei.entity_id
left outer join name_variant as nv on nv.source_id == ei.entity_id
where
variantname like "%" || :name || "%"
name like "%" || :name || "%"
or variantname like "%" || :name || "%"
group by
innovation_id
order by
Expand Down

0 comments on commit 2df16d3

Please sign in to comment.