I have a graves hosted feature layer that has Ownerfullname, Firstname, lastname, OccupantLabel, OccupantFirstName, OccupantLastName. Somewhere down the line some of the Ownerfirstname was placed in the OccupantFirstName which is different from the OccupantLabel. I cannot use a simple strip from the end of the string due to multiple last names and suffixes. I am looking for a way to select records from the OccupantLabel field by the number of spaces and haven't found a way. The field has been trimmed to remove any leading or ending spaces.
I have tried the following ways in the select by records window just to find 1 space:
OccupantLabel.Count(" ") = 1
OccupantLabel.Count(' ') = 1
(LEN(column1 + ';')-LEN(REPLACE(column1,' ','')) = 1)
OccupantLabel like '%" "%'
Any help would be apprciated.
Thank you.