I need help in writing SQL code in Alteryx Designer.
My table employees
contains a column Name
with values shown below. However, I need the expected output as shown below.
Please help.
Name:
- Smith, Mary K
- Koch, J B
- Batoon Rene, Anne S
- Vaughan-tre Doctor, Maria S
Excepted output:
- Smith, Mary
- Koch, J
- Batoon Rene, Anne
- Vaughan-tre, Maria
The middle initials and “Doctor” word is removed.