kx's kdb+ is an excellent resource if performance is a priority. It's got most of the traditional sql constructs along with a rich library of inbuilt functions. Besides, it's quite easy to have it set it up to interface with C,Java,Matlab and the like as well.