well, let's see the script that you're using to read the SQL.
Efficiency in this case may not just be about the script your using, however. It could very well be how those SQL statements are structured, what they are doing, and how your data is set up in the DB. I've just got nothing to go on here to even begin to answer your question.
Please re-ask and I'd love to help.
How (Not) To Ask A Question