Update Field

  • I require to update a price field in one table from another in the same database where the product code is the same.

    How can I select from one table and update the other? and would query analyzer be the best tool to use?

  • Yes, QA is best one or you can use it as code programatically using VB etc.,

    let us assume you want to update price field in table A with ColX in table B, the query looks like

    UPDATE TableA SET TableA.price=TableB.ColX

    FROM TableA INNER JOIN TableB

    ON TableA.product=TableB.product

    Madhu


    Madhu

  • Thanks Madhu

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply