|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Oracle Transformation HELP!!
Hi,
How do I extract elements of a text field? For example, In my customer table I have an attribute called CustAddress with example data: "17 Good Street, Manhattan, NY, 30004" I want to extract those data into another table without losing any data to having attributes for each address detail, like, CustStreet, CustSuburb, CustState and CustZipCode. How can I extract "17 Good Street" and put it into CustStreet attribute and so forth? Get what I mean? |
|
#2
|
||||
|
||||
|
Read this for instructions about substring and instring functions, then buid a view with the desired details.
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#3
|
|||
|
|||
|
Quote:
Also how would you go about extracting an element of a text field and tranferring it into a number? For example: address="13 good st, NYC"; I want to extract the text "13" and changing its data type to a number, how can i do it? Do i extract it by using substring function and put it into a temporary attribute then alter its data type then? or is there a more efficient way of doing this? Thanks |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Oracle Transformation HELP!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|