Hello, such a problem, you need to exclude data with the same idclient, to return any string no matter what the main one. DISTINCT as I understood it will not help, I tried GROUP BY, but it gives an error: -1; ORA-00979: the expression is not a GROUP BY expression. The query itself:
SELECT idclient, id, name, iditemtype, price FROM items WHERE LOWER(name) LIKE '%' || LOWER(xdb_access.cnv(in_find) || '%') AND isVisible = 1 AND xdb_access.equalsDateMinute(sysdate, isonline) <= t_time_online AND idclient != in_idclient GROUP BY idclient