Opened 11 years ago

Closed 11 years ago

#1194 closed defect (fixed)

Consider making UNKN code UNKNOWN in 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: Dave.Stout@…, kevin.conrad@…, lisa.burke@… Database Engine: SQL Server
Operating System: Windows 7 Ultimate 64 bit

Description

There is a code UNKN indicating "Unknown status" in GRIN-Global npgsWEB Inventory Aavailability Status field, however there are only 199 records using it by W6 and DAVIS. There are over 1700 records using the code UNKNOWN which is not in the code table. W6 and NA are using the UNKNOWN code. I would suggest using the admin tool and change the code UNKN to UNKNOWN solving the issue

You can use these two queries in the search tool on the inventory dataview to find the records in question.

@inventory.availability_status_code = 'UNKN'

@inventory.availability_status_code = 'UNKNOWN'

I used this SQL to find that the UNKNOWN code is not in npgsWEB.

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

Change History (1)

comment:1 by dbmuqs, 11 years ago

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