in reply to Slightly OT - SQL Question

Try a google search for SQL +joins and you should find a wealth of information. Since you're using Access 2000, you can always use the query wizard to construct the query you want, and then use the SQL view to grab the exact SQL statement for your perl script. Sometimes it takes some tweaking to get it right so it runs efficiently, but it's a place to start. The syntax of the end result depends on how you have your tables constructed, how you connect your data, and how exactly you want it all to connect in your output.