<div dir="ltr"><div><div><div><div>Hi Jürgen,<br></div>yes, the column is ID. <br></div>BTW, if I import the shapefile in SpatiaLite (or PostGIS) through DB Manager the same query works and I can easily load the file in QGIS.<br><br></div>Maybe GROUP BY function is not supported in Processing yet?<br><br></div>Thanks<br><br>Matteo<br><br></div>