В одной таблице с именем prefs у меня есть столбец с именем «Value» типа clob, который содержит это значение: 'T', 'L'

Мне нужно запросить таблицу serveance_code, чтобы получить записи, в которых значения столбца att_code равны T или L. Столбец att_code имеет тип varchar2.
В качестве ручного запроса модели это прекрасно работает:
SELECT id FROM attendance_code ac WHERE ac.att_code IN ('T', 'L')
Result:
ID
1 4903
2 4901
Попытка 1
SELECT id FROM attendance_code ac WHERE ac.att_code IN (SELECT value from prefs WHERE name = 'AEADS|SAR|tdyCodes')
ORA-00932: inconsistent datatypes: expected - got CLOB
00932. 00000 - "inconsistent datatypes: expected %s got %s"
Попытка 2
SELECT id FROM attendance_code ac WHERE ac.att_code IN (SELECT dbms_lob.substr(value, 4000, 1) from prefs WHERE name = 'AEADS|SAR|tdyCodes')
Это не приводит к ошибке, но не возвращает строк.
Попытка 3 (на основе https://blogs.oracle.com/aramamoo/how-to-split-comma-separated-string-and-pass-to-in-clause-of-select-statement)
select id from attendance_code ac where ac.att_code IN (
select regexp_substr(value,'[^,]+', 1, level) from prefs WHERE name = 'AEADS|SAR|tdyCodes'
connect by regexp_substr(value, '[^,]+', 1, level) is not null );
ORA-00932: inconsistent datatypes: expected - got CLOB
00932. 00000 - "inconsistent datatypes: expected %s got %s"
Попытка 4
select id from attendance_code ac where ac.att_code IN (
select regexp_substr(dbms_lob.substr(value, 4000, 1),'[^,]+', 1, level) from prefs WHERE name = 'AEADS|SAR|tdyCodes'
connect by regexp_substr(dbms_lob.substr(value, 4000, 1), '[^,]+', 1, level) is not null );
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 1
06502. 00000 - "PL/SQL: numeric or value error%s"
*Cause: An arithmetic, numeric, string, conversion, or constraint error
occurred. For example, this error occurs if an attempt is made to
assign the value NULL to a variable declared NOT NULL, or if an
attempt is made to assign an integer larger than 99 to a variable
declared NUMBER(2).
*Action: Change the data, how it is manipulated, or how it is declared so
that values do not violate constraints.
Я также пытался изменить значение в таблице prefs на T, L (удаляя одинарные кавычки) и запустив все вышеперечисленное, но безрезультатно.
Какой правильный способ сделай это, пожалуйста?