QofQ join
I have an excel spreadsheet that lists over 300k products. Actually it comes as an xml file but the CF server can't parse a file that big so we import it into excel upload it to the site and then use cfspreadsheet to suck it into a query. That all works well.
NOW here is the problem. The way it works is basically 2 different tables in the same spreadsheet due to the way excel handles subcatagories.
The products have the following info (basically, no need to list all the fields)
ProdID (KEY) and CAT
Then there are also
ProdID1 and CAT2
These actually are subcategories and are on seperate lines in the spreadsheet. Duplicate data except for the CAT2 field.
So I want to combine these down to just 1 entry for each product. It would seem to be easy at first but not so fast. This is a QofQ and a lot of stuff doesn't work. I thought about putting the info into 2 temp tables and then doing the join but if I can do this in one query it would be great.
Basically I have to match up the ProdID to ProdID1 and grab CAT2 putting it into the main query. But QoQ doesn't allow a subquery in the select statement. Also some products don't have a subcatagory.
Any ideas?
Oh yeh. ColdFusion 9
