The following example selects those records where the last name ($PIECE(Name,',',1) or the first name (without the middle initial) matches the current user name:
SELECT Name FROM Sample.Person
WHERE %SQLUPPER(USER)=%SQLUPPER($PIECE(Name,',',1))
OR %SQLUPPER(USER)=%SQLUPPER($PIECE($PIECE(Name,',',2),' ',1))