Opened 11 years ago
Closed 9 years ago
#1186 closed defect (fixed)
Codes in the GERMPLASM_FORM group are missing
| Reported by: | Mark J. Millard | Owned by: | dbmuqs |
|---|---|---|---|
| Priority: | major | Milestone: | Post-NPGS Prod'n |
| Component: | Database, Custom Reports | Version: | 1.9.6 Server |
| Severity: | Keywords: | missing codes | |
| Cc: | lisa.burke@… | Database Engine: | SQL Server |
| Operating System: | Windows 7 Ultimate 64 bit |
Description
The GERMPLASM_FORM group of codes are used in several tables. Among them are accession, accession_source, inventory, inventory_maint_policy, order_request_item, web_order_request_item, web_user_cart_item. Below are the fields where codes are in the records and the code is not in the code table. I have included the SQL to find these missing codes and a table indicating the number of records and who owns those records.
accession.initial_recieved_form_code
SELECT accession.initial_received_form_code, last_name, COUNT(accession.initial_received_form_code) reccount FROM accession JOIN cooperator on cooperator.cooperator_id = accession.owned_by WHERE accession.initial_received_form_code NOT IN (SELECT value FROM code_value WHERE group_name = 'GERMPLASM_FORM') GROUP BY accession.initial_received_form_code, last_name ORDER BY accession.initial_received_form_code, last_name
initial_received_form_code last_name reccount
BA Hummer 32
VI White 6
accession_source.collected_form_code
SELECT accession_source.collected_form_code, last_name, COUNT(accession_source.collected_form_code) reccount FROM accession_source JOIN cooperator on cooperator.cooperator_id = accession_source.owned_by WHERE accession_source.collected_form_code NOT IN (SELECT value FROM code_value WHERE group_name = 'GERMPLASM_FORM') GROUP BY accession_source.collected_form_code, last_name ORDER BY accession_source.collected_form_code, last_name
collected_form_code last_name reccount
BA Conrad 1
inventory.form_type_code
SELECT inventory.form_type_code, last_name, COUNT(inventory.form_type_code) reccount FROM inventory JOIN cooperator on cooperator.cooperator_id = inventory.owned_by WHERE inventory.form_type_code NOT IN (SELECT value FROM code_value WHERE group_name = 'GERMPLASM_FORM') GROUP BY inventory.form_type_code, last_name ORDER BY inventory.form_type_code, last_name
form_type_code last_name reccount
VI White 7
inventory.distribution_default_form_code
SELECT inventory.distribution_default_form_code, last_name, COUNT(inventory.distribution_default_form_code) reccount FROM inventory JOIN cooperator on cooperator.cooperator_id = inventory.owned_by WHERE inventory.distribution_default_form_code NOT IN (SELECT value FROM code_value WHERE group_name = 'GERMPLASM_FORM') GROUP BY inventory.distribution_default_form_code, last_name ORDER BY inventory.distribution_default_form_code, last_name
distribution_default_form_code last_name reccount
VI White 5
order_request_item.distribution_form_code
SELECT order_request_item.distribution_form_code, last_name, COUNT(order_request_item.distribution_form_code) reccount FROM order_request_item JOIN cooperator on cooperator.cooperator_id = order_request_item.owned_by WHERE order_request_item.distribution_form_code NOT IN (SELECT value FROM code_value WHERE group_name = 'GERMPLASM_FORM') GROUP BY order_request_item.distribution_form_code, last_name ORDER BY order_request_item.distribution_form_code, last_name
distribution_form_code last_name reccount
BA Rios 1
NA Krueger 158
VI Krueger 12
VI White 2
Change History (2)
comment:1 by , 11 years ago
| Version: | 1.9.4 Server → 1.9.6 Server |
|---|
comment:2 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
