![]() |
|
Archives of the TeradataForumMessage Posted: Mon, 16 Jul 2012 @ 14:01:53 GMT
Hi Vinod, You could use index to full fill this Use index to find the position of space "SPACE" in full name and then use the position to get - firstname =fullname from 1st till (SPACE-1) - lastname = fullname from (SPACE+1)
SELECT INDEX(fullname ,' ') AS "a", SUBSTR(fullname,1, a-1 ) ,
SUBSTR(fullname,a+1 )
Hope this helps! Cheers SP
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||