Skip to content
Advertisement

how to pass value from one dataframe to another dataframe?

I have to pass the the C_ID value to where condition in below data frame as parameter. Any suggestions how I can do this ? i should not use subquery concept as data is in millions and multiple tables are there in joins,here i have mentioned sample query.

Advertisement

Answer

Store sql result into a variable using mkString and then use the variable in your where clause.

Example:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement