reduction of er diagram to table