I have the following statement. When I don't use the substring function I get over 20 rows selected. When I use this statement I get zero. I'm just wondering what I would need to fix in this statement to achieve the same results.
SQL> select * from
2 (select
3 sql_fulltext, executions
4 from v$sql
5 order by elapsed_time desc)
6 where substr(sql_fulltext,1,30) like '%table_name%';
table_nameappear in the first 30 characters?