root/inputs/GBIF/Specimen/postprocess.sql @ 9501
1 |
CREATE INDEX ON :table ("InstitutionCD"); |
---|---|
2 |
|
3 |
-- Remove institutions that we have direct data for
|
4 |
DELETE FROM :table |
5 |
WHERE "InstitutionCD" IN ( |
6 |
'ACAD'
|
7 |
, 'MT' |
8 |
, 'QFA' |
9 |
, 'TRT' |
10 |
, 'TRTE' |
11 |
, 'UBC' |
12 |
, 'WIN' |
13 |
)
|
14 |
/* list obtained using:
|
15 |
SELECT DISTINCT dataprovider
|
16 |
FROM sourcelist
|
17 |
JOIN provider_count ON provider_count.dataprovider = sourcelist.name
|
18 |
WHERE source_id = source_by_shortname('GBIF')
|
19 |
ORDER BY dataprovider
|
20 |
*/
|
21 |
;
|