Monday, April 30, 2018

How Do I Get the Attribute of My Object Type in SQL?

DZone Database Zone
How Do I Get the Attribute of My Object Type in SQL?
How Do I Get the Attribute of My Object Type in SQL?

This question found its way into my inbox yesterday:

I have a table with an object type column. I want to way to get the value of an attribute of that object type in my query. But Oracle keeps telling me "ORA-00904: invalid identifier". What am I doing wrong?

Almost certainly what you are doing wrong is forgetting to use a table alias. Yeah, it's that simple.

No comments:

Fun With SQL: Functions in Postgres

DZone Database Zone Fun With SQL: Functions in Postgres In our previous  Fun with SQL  post on the  Citus Data  blog, we covered w...