SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 PL/SQL Split string into two column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kaidi223
Starting Member

1 Posts

Posted - 04/13/2012 :  23:40:27  Show Profile  Reply with Quote
Hi Guys

I wonder if any one can help me, I a bit of a noob. I need to split to a string from one table and split into two columns in another table. There is a few different variety of numbers and rules but no clear delimiter. I was how this can be done. Do I use combo of SUBSTR and INSTR or use if then loops to satisfy all the rules.
Thanks in advance.

Table

5 Kent Street
3 A lindt Street
2/15 bold Street
9/34-36 carmen Road
12/5a sandford Street

Result

Number |Street
----------------
5 |Kent Street
3A |lindt Street
2/15 |bold Street
9/34-36 |carmen Road
12/5a |sandford Street

khtan
In (Som, Ni, Yak)

Singapore
16769 Posts

Posted - 04/13/2012 :  23:47:00  Show Profile  Reply with Quote
try post over at dbforums.com. SQLTeam.com is on Microsoft SQL Server


KH
Time is always against us

Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22469 Posts

Posted - 04/17/2012 :  04:21:52  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
<<
Do I use combo of SUBSTR and INSTR
>>

Yes use those functions

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000