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

  • Home
  • SEARCH
  • 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 8463653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:30:57+00:00 2026-06-10T14:30:57+00:00

I figured out that we can retrieve records from an Oracle table with batch

  • 0

I figured out that we can retrieve records from an Oracle table with batch inputs as follows:

SELECT 
    * 
FROM
    invoices
WHERE
    (invoice_id, entity_id) IN 
                               (
                                   (1, 101), 
                                   (2, 102), 
                                   (3, 102)
                               )

Now, I need to fire a query where the input for one of the columns is immaterial, but still be able to do batch querying.

E.g.

SELECT 
    * 
FROM
    invoices
WHERE
    (invoice_id, entity_id, vendor_id) IN 
                               (
                                   (1, 101, 201), 
                                   (2, 102, 202), 
                                   -- no criteria on vendor_id for the tuple below
                                   (3, 102)   
                               )

If I run this query, the query engine reports the following error:

ERROR at line 1:
ORA-00920: invalid relational operator

Is it possible to do such a query in the first place? If so, how?

  • 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-10T14:30:59+00:00Added an answer on June 10, 2026 at 2:30 pm

    Oracle: Expression Lists:

    The number of expressions in each set must match the number of
    expressions before the operator in the comparison condition or before
    the IN keyword in the membership condition.

    You can separate these conditions:

    SELECT 
        * 
    FROM
        invoices
    WHERE
        (invoice_id, entity_id, vendor_id) IN 
                                   (
                                       (1, 101, 201), 
                                       (2, 102, 202)
                                   )
        or 
        (invoice_id, entity_id) IN 
                                   (
                                       -- no criteria on vendor_id for the tuple below
                                       (3, 102)   
                                   )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Any Access guru's out there that can help me out? Trying to figure out
I'm trying to figure out the best way to create a class that can
Simple problem that I can't figure out... How can I print a '%' character
I know that I can figure out today's date by [NSDate date]; but how
I am having an issue that I can't seem to figure out. Hopefully somebody
I have a weird problem that i can't figure out a solution for: I've
I have a warning in my code that I can't figure out how to
I apologize for this seemingly relatively simple task that I can't figure out. I
I have a problem with Lucene's scoring function that I can't figure out. So
Just came across an issue with my Wordpress template that I can't figure out.

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.