marktoth
asked on
How do I update a field in one table from a field in another table in orabcle
I have taken over a legacy system that now requires addresses to have the county name stored with them. I have obtained a database with the city, stateabbreviation, county and postalcode in them, Imported the data into oracle 10g with the table name DEMOGRAPHICS
Now I need to update my Address table to fill in the county field
where the City, StateAbbreviation, PostalCode fields in the DEMOGRAPHICS = the City, StateAbbreviation, PostalCode fields in the Address Table. Filling in the County field in the Address table with the County field in the DEMOGRAPHICS table
Now I need to update my Address table to fill in the county field
where the City, StateAbbreviation, PostalCode fields in the DEMOGRAPHICS = the City, StateAbbreviation, PostalCode fields in the Address Table. Filling in the County field in the Address table with the County field in the DEMOGRAPHICS table
ASKER
thanks but I get the following error when I run the statement
Sql Command not properly ended, Line 2 Column 21
Sql Command not properly ended, Line 2 Column 21
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
And d.country should be d.county...
ASKER
Thanks!
ASKER
That saved me from having to look at about 102,000 records in our database! Thanks!!!!!!!!!!!!!!!!!
Open in new window