er diagram to table conversion example