Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8400669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:37:03+00:00 2026-06-09T21:37:03+00:00

Using Advantage Database Server 8.1 I am having trouble executing a successful query. I

  • 0

Using Advantage Database Server 8.1 I am having trouble executing a successful query. I am trying to do the following

SELECT * FROM Persons
WHERE LastName IN ('Hansen','Pettersen')

To check for multiple values in a column. But I get an error when I try to execute this query in Advantage.

Edit – Error

poQuery: Error 7200: AQE Error: State = 42000; NativeError = 2115; [iAnywhere Solutions][Advantage SQL Engine]Expected lexical element not found: ( There was a problem parsing the
WHERE clause in your SELECT statement. — Location of error in the SQL statement is: 46

And here is the SQL i’m executing

 select * from "Pat Visit" where 
DIAG1 IN = ('43644', '43645', '43770', '43771', '43772', '43773', '43774', 
'43842', '43843', '43845', '43846', '43847', '43848', '97804', '98961', 
'98962', '99078')

Done

Does anyone have any Idea how I could do something similar in advantage that would be efficient as well?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:37:05+00:00Added an answer on June 9, 2026 at 9:37 pm

    You have an extraneous = in the statement after the IN. It should be:

    select * from "Pat Visit" where 
         DIAG1 IN ('43644', '43645', <snip> )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the Advantage Database Server from Sybase and have for the moment
I am working at the moment with the advantage database server from sybase. I
Using Advantage Database Server SQL, I need to be able to join free tables
Unfortunately we are using the Advantage Database Server Torture Edition Version 8.1. After I
So I am currently working on a migration from an old Advantage database server
I'm using Advantage Database Server 9.10, and I want to append a text to
We are using Delphi 7 to develop database apps with advantage as a backend.
Is it safe to update DBF files using Advantage Local Server .Net provider whilst
What's the advantage of using mock objects in comparison to a static test database
(Advantage Database Server) I have a table of service providers that, for auditing purposes,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.