SELECT /*+ RULE */ 
	imname, 
	count(distinct ivid) 
	from PROD.iv
	where site = 'NSSL' and statcmt <> 'NULL' and
	IMNAME LIKE '&imname' 
	GROUP BY imname ;
