I am sure this is as simple as a question can get but I have been stumped on it so figured that I would ask in hope of a quick response. Using an OLEDB connection I want to do a select statement but for the table I am selecting from, a table member also has to be there too which seems to be messing up my results.
Normally I would write to get the column “col1”:
SELECT lib1.table.col1 FROM lib1.table
For the table I need the information from, the table has a “submember”. From what I have gathered the syntax is something like this:
SELECT lib1.table(submember).col1 FROM lib1.table(submember)
The problem is that the results are giving me every column within the table, not just my “col1” data. I hope that this is well explained for what I am looking for. Thanks ahead of time for anyone who helps.
create alias library.aliasname for library.table(member)
Then do the select on the alias