Facing problem to create SQL query to copy table1 column entry into table2 column entry.
Scenario is,
City is a table with following attributes,
- City_Id
- latitude
- longitude
- Active
Venue is a table with following attributes,
- V_id
- City_Id
- lat
- long
I want to copy all the latitude & longitude into lat & long respectively where lat & long should be NULL and when city is Active = 1 and c.city_id = v.city_id. But there are multiple city_id exists in Venue and accordingly I need to copy this.
It will be great help if someone helps me to build a query for this.