Project

General

Profile

UNCC issues

Some accession numbers appear more than once, referring to different organisms

Rows affected: 28 (14 distinct accession numbers)

Sample rows:

accession count row_num SciName collector collmonth collday collyear country state county locality
40405 2 35571 STYRAX GRANDIFOLIUS CAMPBELL, D. MAY 2 2006 USA NC CATAWBA RIVERBEND PARK
40405 2 8459 CIRSIUM CAROLINIANUM CAMPBELL, D. JUN 1 2006 USA NC BURKE HWY. 18 S. OF MORGANTON

Query:

SELECT accession, count, row_num, "SciName", collector, collmonth, collday, collyear, country, state, county, locality
FROM
(
    SELECT accession, count(*) AS count
    FROM "UNCC".specimens
    GROUP BY accession
    HAVING count(*) > 1
)
accession_numbers
JOIN "UNCC".specimens USING (accession)