Maybe if you explained - in some detail - what you are trying to do, and showed us samples of your data and a few sample answers, we would be better able to offer suggestions?