Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update query - urgent please help...v7

Status
Not open for further replies.

zhelpmepleasez

Technical User
Jul 13, 2004
13
IE
Please help
Trying to update a column in one table based on the contents column in another table
query is :


UPDATE "transaction" SET "RemainingBalance" = 0 WHERE ("transaction"."thebatch"= (SELECT "batches"."batch" FROM "batches"))

error is:
Invalid row-count in subquery.
 
Hi, z

Is there only one record in the "batches" table that matches one record in the "tranaction" table?

William Chadbourne
Oracle DBA
 
no - the records in the "batches table are distinct
i.e. batch number
but in the main table the batch number may appear several times
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top