Wikipedia
SQLeo
SQLeo is a graphical query builder that permits to create complex SQL queries easily, and a powerful tool to view complex SQL queries into diagrams to help analysis. Can connect to Oracle, PostgreSQL, MySQL and any database that provides a JDBC driver. It runs on Windows, Linux and Mac-OS.