May 18, 2016 at 12:46 pm
Hi,
I have one table, it contains data like
One Column
ColA:
A DR
B ST
C DR
I need to split the column into two columns
ColA ColB
A DR
B ST
C DR
May 18, 2016 at 12:53 pm
May 18, 2016 at 1:09 pm
Thanks for the prompt reply.
Actually my data is as below in one column:
SLVER CREEK DR
3RD ST
OAK GATE LN
ABCSDGFDG LN
WnhhkjT ST
I need to split the above data into two columns
1st Column 2nd column
SLVER CREEK DR
3RD ST
OAK GATE LN
ABCSDGFDG ST
Thanks for the help
May 19, 2016 at 7:02 pm
Thank you for the reply.
My requirement changed a bit:
I have one column:
SLVER CREEK DR
3RD ST
S OAK GATE LN
ABCSDGFDG LN
Turtle WnhhkjT
I need the above data split into three columns:
ColA ColB ColC
SLVER CREEK DR
3rd ST
S OAK GATE LN
ABCSDGFDG LN
Turtle WnhhkjT
Thanks.
May 19, 2016 at 8:05 pm
Thank you for the reply.
My requirement changed a bit:
I have one column:
SLVER CREEK DR
3RD ST
S OAK GATE LN
ABCSDGFDG LN
Turtle WnhhkjT
I need the above data split into three columns:
ColA ColB ColC
SLVER CREEK DR
3rd ST
S OAK GATE LN
ABCSDGFDG LN
Turtle WnhhkjT
Thanks.
the formatting is getting messed up by the forum...above is how i see it when I view your post in plain-text. can you clarify the business rules around which value goes in Column A, B and C?
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 19, 2016 at 8:12 pm
I have one column:
SLVER CREEK DR
3RD ST
S OAK GATE LN
ABCSDGFDG LN
Turtle WnhhkjT
E Royal Street
Values that need to be in
ColA : S,E
ColB : SILVER CREEK, 3rd, OAK GATE,ABCSDGFDG ,Turtle WnhhkjT,Royal Street
ColC:ST,LN,LN
Thanks.
May 19, 2016 at 8:27 pm
PJ_SQL (5/19/2016)
I have one column:SLVER CREEK DR
3RD ST
S OAK GATE LN
ABCSDGFDG LN
Turtle WnhhkjT
E Royal Street
Values that need to be in
ColA : S,E
ColB : SILVER CREEK, 3rd, OAK GATE,ABCSDGFDG ,Turtle WnhhkjT,Royal Street
ColC:ST,LN,LN
Thanks.
That is an example of the output you expect but helps me not in terms of knowing why SILVER should not be in ColA when it is in the first position in terms of a space-delimited string.
If these are addresses you are trying to parae you should buy some address standardization software.
Otherwise you're starting down the road of reinventing a very expensive wheel or creating a poor facsimile that only works some of the time.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
May 19, 2016 at 11:23 pm
PJ_SQL (5/18/2016)
Thanks for the prompt reply.Actually my data is as below in one column:
SLVER CREEK DR
3RD ST
OAK GATE LN
ABCSDGFDG LN
WnhhkjT ST
I need to split the above data into two columns
1st Column 2nd column
SLVER CREEK DR
3RD ST
OAK GATE LN
ABCSDGFDG ST
Thanks for the help
If you really need to split the address from the street type, it would be much more effective and cheaper in the long run to buy some CASS Certification software, which would also validate the address as actually existing according to the USPS.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply