RE: SQL Syntax question
I took out your variable for my testing so you will need to add it back in... Anyway, I think this does what you need - eventhough it is extremely ugly. I would keep looking for a better way to do it. I don't think this will be very effecient.SELECT r.year, r.qtr, r.industry_code FROM rpt_calc_data […]
2005-02-21