select pq.name,CODEC5,count(qe.ida2a2) from queueentry qe, processingqueue pq
where pq.ida2a2=qe.IDA3A5 group by pq.name,CODEC5;