1 |
7247
|
aaronmk
|
CREATE INDEX ON :table ("dwc_terms_institutionCode");
|
2 |
|
|
|
3 |
|
|
-- Remove institutions that we have direct data for
|
4 |
|
|
DELETE FROM :table
|
5 |
|
|
WHERE "dwc_terms_institutionCode" IN (
|
6 |
|
|
'MO'
|
7 |
|
|
, 'NY'
|
8 |
|
|
)
|
9 |
|
|
/* list obtained using:
|
10 |
9501
|
aaronmk
|
SELECT DISTINCT dataprovider
|
11 |
7247
|
aaronmk
|
FROM sourcelist
|
12 |
9501
|
aaronmk
|
JOIN provider_count ON provider_count.dataprovider = sourcelist.name
|
13 |
7247
|
aaronmk
|
WHERE source_id = source_by_shortname('SpeciesLink')
|
14 |
9501
|
aaronmk
|
ORDER BY dataprovider
|
15 |
7247
|
aaronmk
|
*/
|
16 |
|
|
;
|