Suppose I have
- table
first_table
which has an FK to tablesecond_table
- table
second_table
which has column calledname_field
Now, I want to add a column in first_table
called name_field
and fill it with the one on the associated second_table
.
How should I fill the values purely using SQL?
(this is Oracle, if that matters)