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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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