Some more info is needed, what do the tables look like and how are they realted to each other?