It's hard for me to say without knowing what the tables and their columns are supposed to represent and how they are related.