S
subs
i have two different tables - i want to compare two particular columns
in the two tables . the columns are called as origin ciy in both the
tables. Some of the entires in both of the columns are similar but not
exactly the same. So i want to write a query which can update the
entries in table 1 with the values in table 2- only when the entries
are similar but not exactly the same. for example if the original col
in both the tables look like this-
ocity(table1) ocity(table 2)
santa fe spri santa fe springs
chicago chicago
west sacramen west sacramento
atglen agtlen
missouri missouri
i want a query which can show the result like this
ocity(table1)
santa fe springs
chicago
west sacramento
atglen
missouri
So if you see the above result carefully, table 1 is updated with
table 2 values only when entries are similar but not exactly the
same . So may be the query has to compare the first six characters of
the table 1 with that of table 2, then if they are same, it should be
updated with that of table 2. can you pls help . Thanks
in the two tables . the columns are called as origin ciy in both the
tables. Some of the entires in both of the columns are similar but not
exactly the same. So i want to write a query which can update the
entries in table 1 with the values in table 2- only when the entries
are similar but not exactly the same. for example if the original col
in both the tables look like this-
ocity(table1) ocity(table 2)
santa fe spri santa fe springs
chicago chicago
west sacramen west sacramento
atglen agtlen
missouri missouri
i want a query which can show the result like this
ocity(table1)
santa fe springs
chicago
west sacramento
atglen
missouri
So if you see the above result carefully, table 1 is updated with
table 2 values only when entries are similar but not exactly the
same . So may be the query has to compare the first six characters of
the table 1 with that of table 2, then if they are same, it should be
updated with that of table 2. can you pls help . Thanks