Opened 11 years ago
Closed 11 years ago
#1196 closed defect (fixed)
Additional Codes are missing in the INVENTORY_AVAILABILITY_STATUS group
| Reported by: | Mark J. Millard | Owned by: | dbmuqs |
|---|---|---|---|
| Priority: | critical | Milestone: | Post-NPGS Prod'n |
| Component: | Database, Custom Reports | Version: | 1.9.4 Server |
| Severity: | Keywords: | codes | |
| Cc: | lisa.burke@… | Database Engine: | SQL Server |
| Operating System: | Windows 7 Ultimate 64 bit |
Description
This is a supplementary ticket addressing additional missing codes beyond those mentioned in ticket #1193, #1194, and #1195. The additional missing codes are PACKAGE, PART_HAR, REL_UNCO, and VIROID. The records can be found in the Search Tool using these queries in the query box:
@inventory.availability_status_code = 'PACKAGE'
@inventory.availability_status_code = 'PART_HAR'
@inventory.availability_status_code = 'REL_UNCO'
@inventory.availability_status_code = 'VIROID'
The missing codes were found using the following SQL and the resulting list of missing codes and the owners of those records follows:
SELECT inventory.availability_status_code, last_name, COUNT(inventory.availability_status_code) reccount FROM inventory JOIN cooperator on cooperator.cooperator_id = inventory.owned_by WHERE inventory.availability_status_code NOT IN (SELECT value FROM code_value WHERE group_name = 'INVENTORY_AVAILABILITY_STATUS') GROUP BY inventory.availability_status_code, last_name ORDER BY inventory.availability_status_code, last_name
availability_status_code last_name reccount
DISCARDED Bernhardt 320
PACKAGE Stout 312
PART_HAR Stout 6
REL_UNCO King 38
UNKNOWN Conrad 954
UNKNOWN Stout 781
VIROID Hummer 4
VIRUS Hummer 64
VIRUS Postman 11
