Project

General

Profile

1
SELECT util.search_path_append('util');
2

    
3
SELECT create_if_not_exists($$CREATE INDEX "Specimen.acronym" ON $$||:table_str||$$ (acronym)$$);
4

    
5
-- Remove institutions that we have direct data for
6
DELETE FROM :table
7
WHERE acronym IN (
8
    -- Comments are from e-mail from Brad Boyle on 2013-1-16
9
    'MO' -- "all MO records in REMIB are also available from MO's own website"
10
    --, 'ARIZ' -- Some REMIB ARIZ specimens not yet in ARIZ itself
11
    --, 'NY' -- Some REMIB NY specimens not yet in NY itself
12
    , 'TEX'
13
)
14
/* list obtained using the following on r9459:
15
SELECT DISTINCT dataprovider
16
FROM sourcelist
17
JOIN provider_count ON provider_count.dataprovider = sourcelist.name
18
WHERE source_id = source_by_shortname('REMIB')
19
ORDER BY dataprovider
20
*/
21
;
(7-7/9)