﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	db_engine	os_version
1194	Consider making UNKN code UNKNOWN in INVENTORY_AVAILABILITY_STATUS group	Mark J. Millard	dbmuqs	"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

"	defect	closed	critical	Post-NPGS Prod'n	Database, Custom Reports	1.9.4 Server		fixed	codes	Dave.Stout@… kevin.conrad@… lisa.burke@…	SQL Server	Windows 7 Ultimate 64 bit
