Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Update query [modified]

Update query [modified]

Scheduled Pinned Locked Moved Database
helpdatabaseannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    micydon
    wrote on last edited by
    #1

    Pls anybody help me. i hve to update a feild( say rcvd) in receivables table from taking the feild(amount) from allocation table. i give the query like this" update receivables,allocation set rcvd=rcvd+amount where receivables.no=allocation.no " i want to know whether we can give 2 table name in update query if so then the syntax when i give the above i am getting error.pls help me its urgent -- modified at 4:31 Saturday 20th January, 2007

    B M 2 Replies Last reply
    0
    • M micydon

      Pls anybody help me. i hve to update a feild( say rcvd) in receivables table from taking the feild(amount) from allocation table. i give the query like this" update receivables,allocation set rcvd=rcvd+amount where receivables.no=allocation.no " i want to know whether we can give 2 table name in update query if so then the syntax when i give the above i am getting error.pls help me its urgent -- modified at 4:31 Saturday 20th January, 2007

      B Offline
      B Offline
      Bassam Saoud
      wrote on last edited by
      #2

      Hope this [^] helps..

      1 Reply Last reply
      0
      • M micydon

        Pls anybody help me. i hve to update a feild( say rcvd) in receivables table from taking the feild(amount) from allocation table. i give the query like this" update receivables,allocation set rcvd=rcvd+amount where receivables.no=allocation.no " i want to know whether we can give 2 table name in update query if so then the syntax when i give the above i am getting error.pls help me its urgent -- modified at 4:31 Saturday 20th January, 2007

        M Offline
        M Offline
        M H 1 2 3
        wrote on last edited by
        #3

        try ... update r set rcvd = r.rcvd + a.amount from receivables r join allocation a on a.no = r.no

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups