I need some help with an insert statement.
I've got:
my_table_a:
School Latitude Longitude
Old School 38.6... -90.990...
New School 38.6... -90.990...
Other School 38.6... -90.990...
Main School 38.6... -90.990...
my_table_b:
School Latitude Longitude
City School
Old School
Central School
New School
Other School
I need to insert the latitudes and longitudes from my_table_a into my_table_b where there is a match between the school names. The problem is that table A doesn't have all of table B's schools and vice versa.
I've tried a WHERE clause but it's not working. I need to insert where my_table_a.school = my_table_b.school . Any suggestions?