Is there a way to display the result of a query in QGIS?
For instance :
To get the total number of inhabitants :
SELECT SUM( inhabitants ) FROM countries
To get the total density :
SELECT SUM(inhabitants)/SUM($area) FROM countries
To get the maximal human density :
SELECT MAX( inhabitants/$area) FROM countries
And so on...
It looks it is not possible natively, but is there a plugin ? Or a way to do it in python (using the console) ? If so, is there a way to restrict the query to the current selection ?
I've found out about the plugin "Statist", which almost does the job, but which does not allow custom queries...
Related questions: