Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Postgres 9.3 copy data from another table with relation [on hold]

$
0
0

Hi I have two tables in my database which is related, which is forms and qa_forms.

forms
->id
->name
-address
-phone
-calldatetime

and then `

qa_forms
->id
->forms_id
->name
->address
->phone

So the qa_forms is just the replicate of forms I already have data on both however I forgot to add calldatetime in my qa_forms. So what I did is i add new column on qa_forms which is calldatetime. As expected all the values will be null since I already have data before and this one is newly added, how can I get their respective calldatetime on forms on the fastest way I can do it? They have relation which is forms.id = qa_forms.forms_id.

Any query on that?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>