Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Comparing data within the same file

$
0
0

Hi,

The data will be in a text file. I need to check the two columns from within the same textfile.

like, we have 2 columns Place and Country as like with below said similar values

---Place---|----Country----

--NY, US--|-----US-----

Alabama-|---------------

Now i have check the column 'Country' whether it is null or not null..accordingly i have to remove the last 2 character of the field 'Place' . If value is there then blindly i can remove the last 2 character from col 'Place' if not i will not remove any characters.

like in above said xample, i will remove the character with expression like substring~~. But i am confused here how to check against the same file..

If any had this similiar kind of work plz do let me know how can i handle this ?

Thanks !


--------------------------- Radhai Krish | Golden Age is no more far | --------------------------


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>