-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEVAbase_2023-1.3.txt
27 lines (21 loc) · 1.26 KB
/
EVAbase_2023-1.3.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
### Reformat and update SpecimenCatalog
# Begin to bring SpecimenCatalog table column names into alignment with Darwincore terms (https://dwc.tdwg.org/terms/#dwc:basisOfRecord). Catalog four new specimens to match accession records in EVAbase_2023-1.2.txt
# Rename and update basisOfRecord terminology.
ALTER TABLE SpecimenCatalog
RENAME COLUMN specimenType TO basisOfRecord;
UPDATE SpecimenCatalog
SET basisOfRecord = 'FossilSpecimen'
WHERE basisOfRecord = 'Fossil';
UPDATE SpecimenCatalog
SET basisOfRecord = 'MaterialSample'
WHERE basisOfRecord = 'Mineral';
INSERT INTO SpecimenCatalog(basisOfRecord, mineral, taxon, verbatimDescription, verbatimLocality, accessionNumber)
VALUES
('MaterialSample', 'Chalcedony, Silicated Serpentine, Limonite, Small amounts of agate, Country stone', 'NA', 'Ocean Picture Stone agate', 'British Columbia, Canada', '3'),
('MaterialSample', 'Kyantite', 'NA', 'Large handsample of kyanite in quartz? crystals', 'NA', '4'),
('FossilSpecimen', 'NA', 'Alethopteris sullivantii', 'Part and counterpart of fossil fern (n = 2)', 'Mazon Creek, Illinois', '5'),
('FossilSpecimen', 'NA', 'Plantae', 'Fossil leave', 'NA', '6')
;
UPDATE SpecimenCatalog
SET additional number = MC142
WHERE catalogNumber = 52;