http://qs321.pair.com?node_id=655642


in reply to Returning two records with SELECT statement and then printing to file

Why didn't you try to limit it on your query? It seems that you're retrieving all records from the specified statement because you're asking your database to do so...

Igor Sutton
your code, your rules.