You can create a Derby database from within the ij tool.
ij> connect 'jdbc:derby:testdb;create=true';
This command creates a database called testdb in the current directory, populates the system tables, and connects to the database. You can then run any SQL statements from the ij command line.