A free SQL query tool various DBMS (PostgreSQL, Oracle, DB2, HyberSQL and others)
hsqldb: Full-featured 100% Java ORDBMS