BookmarkSubscribeRSS Feed
PRETHESH
Calcite | Level 5
Hi All,
I created a job in DI studio. I am joining 3 tables in that job. That job has one SQL JOIN transform. After running this particular transform, when i try to see the data in the temporary target table, it is throwing the below error. Can any one provide solution for this or what will be the cause of the error?

Error is

Correlated reference to column "A" is not contained within a subquery
4 REPLIES 4
Ksharp
Super User

Can you paste the SQL code generated by DI studio ?

From you log, It looks like the join KEY -- A is not in one of these three tables.

Ksharp

Daryl
SAS Employee

PRETHESH, could you also please post the log of the job too.

thanks,

Daryl

LinusH
Tourmaline | Level 20

My guess is that you are mixing inner and outer joins.

in these situations is quite easy to create an invalid join syntax (which I think DI Studio should help to identify...)

Data never sleeps
eagles_dare13
Obsidian | Level 7

I have solved this problem by putting the inner join at the end after all the outer joins ....although I dont know why the error happens.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 3945 views
  • 0 likes
  • 5 in conversation