Skip to content
Advertisement

Insert from multiple tables, multiple rows

I have been trying to solve my problem but could not find the answer. Oracle db.

I have table context with looks like:

I have another table setting:

What I would like is to insert David in setting, while copying the settingName and settingValue of John (contextId = 1).

Result should look like:

Thanks

Advertisement

Answer

If your requirement is to use the customer names ‘David’ and ‘John’, then you need a join:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement