I have a table with following data, wanted to compare this table data with another table using "IN" clause, but throwing ORA-01722 error,
SQL> desc a
Name Null? Type
----------------------------------------- -------- ----------------------------
SCOPE VARCHAR2(20)
PART_LIST VARCHAR2(2000)
SQL> select part_list from a ;
PART_LIST
--------------------------------------------------------------------------------
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
SQL> select partition_name from dba_Tab_partitions where partition_position in (select trim((part_list) from a);
ERROR at line 1:
ORA-01722: invalid number
Regards Kannan