﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	db_engine	os_version
1897	Create Validation Queries/Reports For Taxonomy CWR Data Conversion	Benjamin Haag	Benjamin Haag	"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).
"	task	closed	major		Database, Custom Reports	N/A		fixed		melanie.schori@…	SQL Server	N/A
