create or replace function get_gender(sname varchar)
return char is
gender char(1);
begin
select decode(lower(substr(sname, -1)),'ч','M','а','F','U')
into gender
from dual;
return(gender);
end;
/
select * from sellers where gen_gender(full_name)='M';