SqlFun is a Java program/applet (sort of a generic SQL client) that allows you to experiment with SQL statements [hopefully] without having to install a SQL server or database program. All you need is Java and Windows ODBC (or any other database server that supports JDBC).
hsqldb is a relational database engine written in Java, with a JDBC driver, supporting a rich subset of ANSI-92 SQL (BNF tree format). It offers a small (less than 160k), fast database engine which offers both in memory and disk based tables. Embedded and server modes are available. Additionally, it includes tools such as a minimal web server, in-memory query and management tools (can be run as applets) and a number of demonstration examples.
This Java applet implements a sortable data viewer. Colors, fonts, and gridlines are customizable. You can specify each column's heading, data type, width percentage, alignment. Column clicked sorting toggles between ascending and descending orders. Initial sorting column and order can be specified as well. Free for non-commercial use!