I was looking for two functions
One possibility is to write these functions yourself, using Derby's functionality for writing extension functions in Java: http://wiki.apache.org/db-derby/DerbySQLroutines#head-a33ab58dd138ca35ee2ada0551ad77d0feee1b79 thanks, bryan
