separate tables by column