Hi,
As per my understanding you are loading data through flat file.In that case you can use SED commands.
But if the space position in data value is fixed then you can use following command.
trim(SUBSTRING(col1,1, INDEX (trim ( BOTH ' ' from col1),' ') ))|| trim(SUBSTRING(col1, INDEX (trim (...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.