0

For starting with: my title sucks, so help me figure out a new one?
I can't post all the SQL here (over 30k characters for the lot of it), so I stuck it on pastebin.com
The problem:
I get an XML file that I scrape some records from, and I need to extract some data from the records and build an...