-- Finders_Data select b.lastname,b.firstnames, to_char(a.created,'dd-mm-yy'), count(*) from orders a, users b where b.id=a.traderuserid and active =1 group by b.lastname,b.firstnames, to_char(a.created,'dd-mm-yy') having count(*) between 18 and 22 order by count(*) desc;