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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Currency not on a record -1603

Status
Not open for further replies.

jrponline

Programmer
May 31, 2006
10
CA
Hi There,

I am trying to run the query below in the Pervasive SQL V8.6 Data Manager.

UPDATE "TEST1" INNER JOIN "TEST2" ON "TEST1"."PARTNUM" = "TEST2"."PARTNUM" SET "TEST1"."DESCRIPTION" = "TEST2"."DESCRIPTION"

I get the following error:

"ODBC Error: SQLSTATE = S1000, Native error code = -1603
Currency not on a record."

The user manual says to add a group by or order by to solve the problem, but I don't know how to add one in an update query. Can you help?
 
You don't want to use Inner Join like that. You want to do something like:

UPDATE "TEST1" SET "TEST1"."DESCRIPTION" =
(SELECT "TEST2"."DESCRIPTION" FROM "TEST2"
WHERE "TEST2"."PARTNUM" = "TEST12"."PARTNUM")

Linda
Pervasive Software
 
You're welcome - but don't cut and paste, there's a typo in my WHERE clause. It should be TEST1 not TEST12 after the =.



Linda
Pervasive Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top