Let say I've two tables,
Table A
PK SIZE
89733 5
83644 3
87351 8
84423 11
Table B
ID Table_A_PK
1 89733,83644,86455
2 87351,89542
3 84132
4 84566,84646
Note: Column Table_A_PK is of collection type, that's why it has many values.
I want to select value of size column of Table A if column PK value exits in Table B's column Table_A_PK
For this I tried this but it's not working and throwing an error
Select {a.SIZE}
from {A as a} where {a.PK}
in ({{ SELECT {b.Table_A_PK} FROM {B as b}
Actual Result: ORA-01722: invalid number
Expected Result
SIZE
5
3
8