update one table depend on the value of another table

jase mhi

I have 2 queries like this:

Select F_Exhibitor,F_Stand from t_order_header where F_Exhibition='10996'

AND

select F_ExhibitorCode,F_Stand from T_ExhibitorLocation where F_ExhibitionCode='10996'

I want to update T_order_header table F_stand with corresponding F_ExhibitorCode and F_stand name in the T_ExhibitorLocation

Simone

Hoping to have correctly understood the request, the update query could be something like

UPDATE o
SET o.F_Stand = e.F_Stand
FROM t_order_header o INNER JOIN T_ExhibitorLocation e ON e.F_ExhibitionCode = F_Exhibition
--optional where code

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to update a table if a row is deleted in another one

From Dev

How to insert value into a table and also update a value in another table using one button?

From Dev

Netezza UPDATE from one table to another

From Dev

Update a column of NAs in one data table with the value from a column in another data table

From Dev

Update table with another table based on cell value

From Dev

Update and insert to one table from another

From Dev

Insert query depend on another table

From Dev

Update column in one table based on value in another table in mysql

From Dev

MySQL - Update/Set a column in one table equal to MAX value from another table

From Dev

Update one table by aggregating data of another table

From Dev

How to update one table from another table?

From Dev

update one table from another selected table

From Dev

Update oracle table and change one character with another

From Dev

Update one table with the results from another

From Dev

update table based on another tables value in sqLite

From Dev

Update specific rows from one table to another

From Dev

Update and insert to one table from another

From Dev

SQL Server query to update one table column value with another table value

From Dev

Insert one table and update another with shellscript

From Dev

Update column in one table based on value in another table in mysql

From Dev

Update newly added column with value on another table

From Dev

How to update a table from one database to another?

From Dev

Spark SQL Pyspark update value in table to another value in table

From Dev

Update one table when joined to another

From Dev

Update column from another table column value

From Dev

How to update only one value that corresponds to a value from one row in another table?

From Dev

Update null to a value and insert to another table

From Dev

mysql update column value from another table

From Dev

Value from one table on basis of another table

Related Related

  1. 1

    How to update a table if a row is deleted in another one

  2. 2

    How to insert value into a table and also update a value in another table using one button?

  3. 3

    Netezza UPDATE from one table to another

  4. 4

    Update a column of NAs in one data table with the value from a column in another data table

  5. 5

    Update table with another table based on cell value

  6. 6

    Update and insert to one table from another

  7. 7

    Insert query depend on another table

  8. 8

    Update column in one table based on value in another table in mysql

  9. 9

    MySQL - Update/Set a column in one table equal to MAX value from another table

  10. 10

    Update one table by aggregating data of another table

  11. 11

    How to update one table from another table?

  12. 12

    update one table from another selected table

  13. 13

    Update oracle table and change one character with another

  14. 14

    Update one table with the results from another

  15. 15

    update table based on another tables value in sqLite

  16. 16

    Update specific rows from one table to another

  17. 17

    Update and insert to one table from another

  18. 18

    SQL Server query to update one table column value with another table value

  19. 19

    Insert one table and update another with shellscript

  20. 20

    Update column in one table based on value in another table in mysql

  21. 21

    Update newly added column with value on another table

  22. 22

    How to update a table from one database to another?

  23. 23

    Spark SQL Pyspark update value in table to another value in table

  24. 24

    Update one table when joined to another

  25. 25

    Update column from another table column value

  26. 26

    How to update only one value that corresponds to a value from one row in another table?

  27. 27

    Update null to a value and insert to another table

  28. 28

    mysql update column value from another table

  29. 29

    Value from one table on basis of another table

HotTag

Archive