﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	db_engine	os_version
2009	Increase the ability of the PW report for germination methods to also search for Taxonomy linked to viability rule	Lisa Burke	Kurt Admin	"The current query looks for:

1.	By wildcard match on the rule name, displaying species name linked to the rule through the inventory_viability_rule_map
2.	By wildcard match on species name linked to the rule through the inventory_viability_rule_map
3.	By matching orders linked to inventory viability records to their rule, displaying item external taxonomy

If that design is deemed inadequate a search could conceivably be added that links from taxonomy to inventory viability to rule. That will likely return a lot more hits, madia gives 16 distinct species rule combinations:
 
select DISTINCT
t.name as Species,r.inventory_viability_rule_id as ""RuleID"",r.name as Name,requirements as Requirements,
temperature_range as ""Temperature Range"",category_code as Category,count_regime_days as ""Regime Days"",
moisture as Moisture,prechill as Prechill,lighting as Lighting 
from inventory_viability_rule r
join inventory_viability v on v.inventory_viability_rule_id=r.inventory_viability_rule_id
JOIN inventory i ON i.inventory_id=v.inventory_id
JOIN accession a ON a.accession_id = i.accession_id
join taxonomy_species t on t.taxonomy_species_id=a.taxonomy_species_id
where t.name like '%' + 'madia' + '%'
"	enhancement	closed	medium		Public Website App.	N/A		fixed	Public Website Germination Method Report	devteam@…	N/A	N/A
