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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:52:35+00:00 2026-05-26T08:52:35+00:00

I have a two tables. TableA has two columns and TableB has one column.

  • 0

I have a two tables. TableA has two columns and TableB has one column.

TableA

ID | TERM_A

TableB

TERM_B

TERM_A and TERM_B column contain terms .
I want to take intersect terms from TERM_A column of TableA and TERM_B column of TableB with sql on Oracle 10.
My result table should be like that :

  • Result_Table

    ID | INTERSECT_TERMS

How can I do that?

  • 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-26T08:52:35+00:00Added an answer on May 26, 2026 at 8:52 am

    The INTERSECT operator returns a resultset containing the matching values from the two queries.

    select * from tableA
    where term_a in 
        ( select term_a from tableA
          intersect
          select term_b from tableB )
    ;
    

    Because you want to select additional columns from TABLEA you need to use the output of the intersection as a sub-query.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables one has a three column composite key. The other needs
I have two related sql server tables ... TableA and TableB. ***TableA - Columns***
I have a database with two tables (Table1 and Table2). Table1 has one column
I have two tables with identical structure except for one column... Table 2 has
I have a query that joins two tables. One table has a column that
I have two SQL Server tables. One table has four nvarchar(50) nullable columns and
Well, I have two tables in an sql database. One has an ID column
I have two tables: table1, table2. Table1 has 10 columns, table2 has 2 columns.
I have two tables named foo and bar , hypothetically speaking. foo has columns
I have two tables; Leads, Territories and Referrers. Lead has columns: ID, Name, TerritoryId

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.