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 830333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:01:39+00:00 2026-05-15T04:01:39+00:00

I wrote the following query, I think it’s correct but I have a missing

  • 0

I wrote the following query, I think it’s correct but I have a “missing operator” error.

SELECT * FROM results,Types WHERE results.a=Types.b  
INTERSECT  SELECT * FROM results,Types WHERE results.c=Types.b

Could somebody help me please?

Thanks a lot.

  • 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-05-15T04:01:39+00:00Added an answer on May 15, 2026 at 4:01 am

    What database are you using? Are you sure that intersect is supported? I tried your query on Oracle (changing the table names to something corresponding to my DB) and it worked ok.

    EDIT:
    Since you confirmed you are using MS-Access, then it’s clear that INTERSECT is the problem since it’s not supported with MS-Access: http://www.access-programmers.co.uk/forums/archive/index.php/t-86531.html

    EDIT2:
    This is untested, but the basic idea is that you need to find all rows in your first query that exist in your second query. To do that, you will have to compare every column between the 2 queries for a match, as all the columns must match for it to be an “intersected” row.

    There may be some syntax issues, but hopefully this gets you started.

    SELECT r.col1
         , t.col1
         /* list all other columns here */
      FROM results r
         , types t
     WHERE r.a = t.b
     AND EXISTS (
         SELECT *
           FROM results r2
              , types   t2
          WHERE r2.c = t2.b
            AND NZ(r.col1,0) = NZ(r2.col1,0)
            AND NZ(t.col1,0) = NZ(t2.col1,0)
            /* list other columns here, they all need to match so intersection will work */
     )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote the following query for MySQL: SELECT subquery.t1_column1, subquery.t2_id, MAX(subquery.val) FROM ( SELECT
I have the following query: SELECT `pokemon_moves`.`pokemon_move_method_id`, `pokemon_moves`.`level`, `move`.`id`, `move`.`name` FROM `pokemon_moves` LEFT OUTER
I have the following query: select distinct(ab.id) from WidgetClicks ab join ManufacturerWidgets aa on
I have the following problem. I wrote a query to get the date of
I write the following query: select id, (select NameEn from [Campaign] where id=CampaignId) as
how do i write the following sql query in Lambda expression. select rating from
I am trying to write equivalent linq code for following query. SELECT A.* FROM
How can I make the following SQL a Linq query: SELECT * FROM ORDERS
Let's say I have following query: SELECT Id, Name, ForeignKeyId, (SELECT TOP (1) FtName
I am getting random row from my table using the following query: SELECT value_id

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.