Opened 7 years ago

Closed 2 years ago

#1897 closed task (fixed)

Create Validation Queries/Reports For Taxonomy CWR Data Conversion

Reported by: Benjamin Haag Owned by: Benjamin Haag
Priority: major Milestone:
Component: Database, Custom Reports Version: N/A
Severity: Keywords:
Cc: melanie.schori@… Database Engine: SQL Server
Operating System: N/A

Description

I could use help running multiple comparisons between the taxonomy CWR table and other tables to make sure that all the records have been moved.

  1. cwr.species_id, is_crop = ‘y’ matched to crop_map.species_id, common_crop_name is not null (should be 446 for each)
  2. cwr.species_id, genepool_code = primary matched to crop_map.is_primary_genepool = ‘y’, join taxonomy_use on species_id, usage_type like ‘%primary%’ where economic_usage_code = ‘GENETIC’
  3. ditto for secondary genepool
  4. ditto for tertiary genepool
  5. ditto for quaternary genepool
  6. cwr.species_id, genepool_code = progenitor matched to taxonomy_use.species_id, usage_type like ‘%progenitor%’ where economic_usage_code = ‘GENETIC’
  7. cwr.species_id, genepool_code = probable progenitor matched to taxonomy_use.species_id, usage_type like ‘%probable%’ where economic_usage_code = ‘GENETIC’
  8. cwr.species_id, is_potential = ‘y’ matched to taxonomy_use.species_id, usage_type like ‘%potential%’ where economic_usage_code = ‘GENETIC’
  9. cwr.species_id, is_graftstock = ‘y’ matched to crop_map.is_graftstock_genepool = ‘y’, join taxonomy_use.species_id, usage_type like ‘%graft%’ where economic_usage_code = ‘GENETIC’
  10. cwr.species_id, breeding_type_code = ‘[select one at a time]’ matched to taxonomy_use.species_id, usage_type like ‘%[disease; cold; heat, etc.]%’ where economic_usage_code = ‘GENETIC’

It’s probably possible to do one massive search that would get all of the records from CWR, use, and crop map and stitch them together, but I’d rather handle this in bite-sized pieces and check one field at a time. I realize that some of the records will be pulled multiple times (e.g., graft stock, potential, and disease resistance are all present in some records).

Change History (4)

comment:1 by Benjamin Haag, 7 years ago

Cc: melanie.schori@… added

comment:2 by Benjamin Haag, 7 years ago

Status: new → accepted

comment:3 by Benjamin Haag, 6 years ago

Component: Database, Data Updates → Database, Custom Reports

comment:4 by Benjamin Haag, 2 years ago

Resolution: → fixed
Status: accepted → closed
Note: See TracTickets for help on using tickets.