E.g. I have a table - USERS, with column NAME1 varchar2(30). Records currently in it are:
NAME1:
Benjamin Barker
Alexis Jacob Alexander Cruise
Christopher James Lee
How do I create a function or write a query where I can get the output as follows:
Benjamin ****
Alexis **** Cruise
Christopher **** Lee
The function/query will calculate the name string and return E.g. 'Benjamin barker' as 2 tokens, but only display the first token. While if the name has three or more tokens, e.g. 'Christopher James Lee' or 'Alexis Jacob Alexander Cruise', it will only display the first and the last token.