We're not talking about Perl, we're talking about SQL. Your web site says that you know both Perl and SQL (among other things). Is it unreasonable to hope that someone who advertises themself as knowing Perl and SQL would be able to choose the most appropriate technology to solve this problem?