select 
air_disposition as AIR_DISPOSITION,
air_inventoryverificationdate as AIR_INVENTORYVERIFICATIONDATE,
air_obj as AIR_OBJ,
air_obj_class as AIR_OBJ_CLASS,
air_obj_desc as AIR_OBJ_DESC,
air_obj_org as AIR_OBJ_ORG,
air_obj_status as AIR_OBJ_STATUS,
air_obj_statusdesc as AIR_OBJ_STATUSDESC,
air_observed_location as AIR_OBSERVED_LOCATION,
air_observed_location_org as AIR_OBSERVED_LOCATION_ORG,
air_resolution as AIR_RESOLUTION,
air_sessionid as AIR_SESSIONID,
air_updatecount as AIR_UPDATECOUNT,
air_system_location as AIR_SYSTEM_LOCATION,
air_system_location_org as AIR_SYSTEM_LOCATION_ORG, 
air_obj_bin as AIR_OBJ_BIN,
air_observed_binlocation as AIR_OBSERVED_BINLOCATION,
air_obj_xcoordinate as AIR_OBJ_XCOORDINATE,
air_obj_ycoordinate as AIR_OBJ_YCOORDINATE,
air_obj_zcoordinate as AIR_OBJ_ZCOORDINATE 
FROM r5assetinventoryresults, r5assetinventoryparams 
WHERE aip_sessionid = air_sessionid 
AND EXISTS (SELECT 1 FROM r5personnel 
			 WHERE per_user = <parameter.r5user>                      
			 AND aip_person = per_code)
ORDER BY AIR_OBJ