×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Currency not on a record -1603

Currency not on a record -1603

Currency not on a record -1603

(OP)
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?

RE: Currency not on a record -1603

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

RE: Currency not on a record -1603

(OP)
Thank you, Linda!

RE: Currency not on a record -1603

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close