Hi,
I have an address field (1 single field). I have pull out/insert in another fields certain text from the address fields matching to various criteria.
e.g the address field are
a) 88-C DGP House Prabhadevi Mumbai 400025
b) 405 Prathmesh Ashish Enclave Kanakia Santacruz Mumbai 400054
c) Plot # 78-A Ostwal Orchid Tower Prabhadevi Mumbai 25
Output or text in another field will be
a) DBP House
b) Prathmesh Ashish Enclave
c) Ostwal Orchid Tower
A separate table will have matching criteria (like in above e.g. House, Enclave & Tower.
So wherever the matching criteria fields match with address table the text before the matching field should be extracted.
How can this be done - thru a SQL or procedure. I tried using REGEXP_SUBSTR, but wasn't of much help.
TIA,
RAJ
I have an address field (1 single field). I have pull out/insert in another fields certain text from the address fields matching to various criteria.
e.g the address field are
a) 88-C DGP House Prabhadevi Mumbai 400025
b) 405 Prathmesh Ashish Enclave Kanakia Santacruz Mumbai 400054
c) Plot # 78-A Ostwal Orchid Tower Prabhadevi Mumbai 25
Output or text in another field will be
a) DBP House
b) Prathmesh Ashish Enclave
c) Ostwal Orchid Tower
A separate table will have matching criteria (like in above e.g. House, Enclave & Tower.
So wherever the matching criteria fields match with address table the text before the matching field should be extracted.
How can this be done - thru a SQL or procedure. I tried using REGEXP_SUBSTR, but wasn't of much help.
TIA,
RAJ