Skip to main content
Archived

Alias on Oracle tables from reader where clause

Related products:Integrations
  • October 16, 2017
  • 2 replies
  • 39 views

dellerbeck
Contributor
Forum|alt.badge.img+7

When working with Oracle Locator Spatial there are a lot of cases that require an alias on a table. This works really well in the "select" statement of the Oracle reader but it limits the update of column names unless the select clause is updated as well. It would be an awesome enhancement to add in an alias option to the where. The table name is not allowed unless you add the where as an alias.

i.e. in the where clause allow

a.shape.sdo_gtype = 4402

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

john_otoole
Contributor
Forum|alt.badge.img
  • Contributor
  • March 12, 2018

I agree, it would be useful if the generated SQL for reading Oracle tables always added a default, clearly documented, alias of something like "t". So you could then read in just line geometry types using "t.geometry.sdo_gtype=2002"

 

Note that we can currently workaround that using a WHERE clause such as:

 

"rowid in (select rowid from my_table t where t.geometry.sdo_gtype=2002)"

paul.nalos
Safer
Forum|alt.badge.img
  • Safer
  • March 15, 2018

This makes good sense to me. The current workaround is to use something like SQLCreator to specify the whole select statement yourself.