Skip to content

Commit

Permalink
updated sql query to gather WoS records of german institutions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahobert committed Nov 3, 2021
1 parent 26297c1 commit 9c03593
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions data_gathering_preprocessing/create_pubs_german_pillars.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ CREATE TABLE pubs_german_pillars AS
inst.pk_kb_inst,
inst.name as inst_name
FROM
wos_b_2019.items items
wos_b_2021.items items
INNER JOIN
wos_b_2019.issues issues
wos_b_2021.issues issues
ON issues.pk_issues = items.fk_issues
INNER JOIN
wos_b_2019.databasecollection db
wos_b_2021.databasecollection db
ON db.fk_items = items.pk_items
INNER JOIN
wos_b_2019.kb_a_addr_inst a_addr_inst
wos_b_2021.kb_a_addr_inst a_addr_inst
ON items.pk_items = a_addr_inst.fk_items
AND items.ut_eid = a_addr_inst.ut_eid
INNER JOIN
wos_b_2019.kb_inst inst
wos_b_2021.kb_inst inst
ON inst.pk_kb_inst = a_addr_inst.fk_kb_inst
INNER JOIN
wos_b_2019.kb_a_inst_sec a_inst_sec
wos_b_2021.kb_a_inst_sec a_inst_sec
ON inst.pk_kb_inst = a_inst_sec.fk_kb_inst
INNER JOIN
wos_b_2019.kb_sectors sec
wos_b_2021.kb_sectors sec
ON sec.pk_kb_sectors = a_inst_sec.fk_kb_sectors
INNER JOIN
wos_b_2019.kb_a_addr_sec a_addr_sec
wos_b_2021.kb_a_addr_sec a_addr_sec
ON a_addr_sec.fk_kb_a_addr_inst = a_addr_inst.pk_kb_a_addr_inst
AND a_addr_sec.fk_kb_sectors = sec.pk_kb_sectors
WHERE
Expand All @@ -47,5 +47,5 @@ CREATE TABLE pubs_german_pillars AS
3, 4, 6, 7, 8, 9, 10
)
AND items.pubyear > 2009
AND items.pubyear < 2019
AND items.pubyear < 2021
);

0 comments on commit 9c03593

Please sign in to comment.