here\'s a challange. I want to avoid messy cursors and dynamic SQL.
I have a relationships table like so:
FROM_TABLE_NAME | FROM_TABLE_ID | TO_TABLE_N