Select
TRUNC(datreg), logguser, COUNT(l16lcode), ROUND((SUM (distinct(l16wght))),1), SUM(l16qty), COUNT(DISTINCT(eorderid))
from L16T3
WHERE l16lcode =