Opened 11 years ago

Last modified 8 years ago

#1224 new AdCom

Web Report Needed - Count accessions-genus-taxonomy BY site

Reported by: Martin Reisinger Owned by: dbmujc
Priority: tbd Milestone: Post-NPGS Prod'n
Component: Reports Version: 1.9.6 Server
Severity: Keywords:
Cc: marty.reisinger@… Database Engine: N/A
Operating System: N/A

Description

It counts accessions-genus-taxonomy BY site

SELECT s.site_short_name    , count(distinct accession_id) Accession_count    , count(distinct tg.taxonomy_genus_id) AS Genus_count    , count(distinct a.taxonomy_species_id) AS nomenclare_count  FROM taxonomy_genus tg  JOIN taxonomy_species ts ON tg.taxonomy_genus_id = ts.taxonomy_genus_id  JOIN accession a ON ts.taxonomy_species_id = a.taxonomy_species_id  JOIN cooperator c ON a.owned_by = c.cooperator_id  JOIN site s ON c.site_id = s.site_idWHERE a.status_code = 'ACTIVE'GROUP BY s.site_short_name -- If you know how to count distinct genus-species (counting the binomials) then include that also
requested by W6

Change History (1)

comment:1 by Mark J. Millard, 8 years ago

Cc: marty.reisinger@… added

Was this done? Should W6 be queried and if they still want this, assigned to someone else?

Note: See TracTickets for help on using tickets.