I have seen that SQL code can be developed in ways that can make it run slow /extremely efficient. If you are able to use some technique in Perl that made the logic run fast the same technique can be applied to SQL programming to do the processing in proportional amount of time.
Put out the SQL code and the perl code you have......

































