Fix table aliasing for #737
Merge pull request #762 from sjinks/oracle-aliasing

Fix table aliasing for Oracle