Hey,
I work with spatial data in an Oracle 9i database in a German municipality and have a problem as follows:
I have to join data from the land parcels [ALK] with the corresponding data of the owner of the parcels [ALB]. I will do this with the 'parcel_id' that is differently distinct:
ALK: VARCHAR2 (33Bytes) - example: 0304220210001100700
ALB: CHAR (23Bytes) - example: 030422-021-00011/007.00
until now I did as follows:
- "deleted" the special characters by UPDATE..SET..REPLACE
- tried a join that was not successful
- changed the datatype of the ALB column by ALTER TABLE..MODIFY to VARCHAR2 (33Bytes) <- no success
- created a new table + a new column with the needed datatype VARCHAR2 (33Bytes) and added the data by INSERT INTO ..SELECT.. <- no success
- created a new column in the ALB and added two datasets manually: UPDATE..SET NEW_ID='0304220210001100700'WHERE ID=0304220210001100700 <- success
So to me it looks like it is not sufficient just to assume the data. Instead you have add "new characters" to make it work. How can this be done without writing the UPDATE..SET NEW... commands manually[more than 320000 data sets]? What about a function? I have just basic knowledge of SQL so I need help. So I hope somebody understood what my problem is all about.
TIA
Axel
I work with spatial data in an Oracle 9i database in a German municipality and have a problem as follows:
I have to join data from the land parcels [ALK] with the corresponding data of the owner of the parcels [ALB]. I will do this with the 'parcel_id' that is differently distinct:
ALK: VARCHAR2 (33Bytes) - example: 0304220210001100700
ALB: CHAR (23Bytes) - example: 030422-021-00011/007.00
until now I did as follows:
- "deleted" the special characters by UPDATE..SET..REPLACE
- tried a join that was not successful
- changed the datatype of the ALB column by ALTER TABLE..MODIFY to VARCHAR2 (33Bytes) <- no success
- created a new table + a new column with the needed datatype VARCHAR2 (33Bytes) and added the data by INSERT INTO ..SELECT.. <- no success
- created a new column in the ALB and added two datasets manually: UPDATE..SET NEW_ID='0304220210001100700'WHERE ID=0304220210001100700 <- success
So to me it looks like it is not sufficient just to assume the data. Instead you have add "new characters" to make it work. How can this be done without writing the UPDATE..SET NEW... commands manually[more than 320000 data sets]? What about a function? I have just basic knowledge of SQL so I need help. So I hope somebody understood what my problem is all about.
TIA
Axel