How do you write this SQL statement?

  • I have two tables (see below). Table 'csv' has the data I want to put into Table 'item'.

    How do I write the SQL statement (for Access) to update item.Manufac with the data in csv.Manufac? I've started out with something like this:

    updateitem

    setitem.manufac = csv.Manufac

    whereitem.ItemNo = csv.itemNo

    <!-- Table Example -->

    csv.ItemNocsv.Manufac

    12341

    12353

    12364

    12379

    12383

    12391

    item.ItemNoitem.Manufac

    12340

    12350

    12360

    12370

    12380

    12390

    Edited by - jruiseco on 01/16/2002 4:15:25 PM

  • UPDATE Item

    INNER JOIN CSV

    ON Item.ItemNo = CSV.ItemNo

    SET Item.Manufac = [csv].[Manufac];

  • Excellent.. thank you very much.

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

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