SELECT location_libelle as Localisation, section_libelle as Section, left(expl_cote,3) as Cote, count(expl_id) as Frequence FROM exemplaires LEFT JOIN docs_location ON idlocation=expl_location LEFT JOIN docs_section ON idsection=expl_section WHERE expl_section in (!!sectionn!!) AND expl_location in (!!locationn!!) GROUP BY Localisation, Section, Cote ORDER BY Localisation, Section, Frequence DESC