Please post your SQL statement as I am not visualizing your situation from your narrative. I am thinking that you probably need to use the Aggregate function with the count of the descriptions or codes for descriptions.

Alan