Skip to content

Commit

Permalink
Fix ai papers table to use merged id countries not ror countries
Browse files Browse the repository at this point in the history
  • Loading branch information
rggelles committed Jan 17, 2024
1 parent 38cedbb commit a6c2d22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions company_linkage/sql/ai_publications.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ WITH
-- Adding in org names and country data using ROR
SELECT
id,
name AS org_name,
country.country_name AS country
ror.name AS org_name,
standard_name AS country
FROM
gcp_cset_ror.ror),
gcp_cset_ror.ror
LEFT JOIN
countries.country_code
ON lower(country.country_code) = lower(country_code.raw_alpha_2)),
merged_rors AS (
-- Selecting all the merged ids and ror ids from the literature table
SELECT
Expand Down

0 comments on commit a6c2d22

Please sign in to comment.