in reply to returning rows using SQL + Perl DBI
For example, Querylet is a prepackaged application/module that allows you to write queries that produce Excel or HTML output easily.