If you are looking for a proper tool to work with data and SQL queries with ad-hoc visual query builder, you must have a look at FlySpeed SQL Query. It connects to all modern database servers and works with all popular desktop databases and office file formats (CSV, Excel).
tags: Portable data-export database-client master-detail-interface query-builder