This is a Quantum GIS pyhton plugin which can realize SQL queries, Join operation between two tables at your PostGIS database. This plugin similars the ArcMap Select By Attributes operation but there is a difference you can join two tables at this plugin after than yuo can realize a SQL query