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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:30:09+00:00 2026-06-09T17:30:09+00:00

I have a database with several tables, one being used to reference others :

  • 0

I have a database with several tables, one being used to reference others :

Main table :

MAIN | table1 | table2 | table3
        int   |  int   |  int

Each line of this table corresponds to a product, and contains the oid of a line in a daughter table

Then I have my daughter tables :

TABLE1 | name | adress | phone
       | text | text   | ...

My question is quite simple, even though as I just start using databases I can’t get to find the answer.

I would like to get the oid(s) of the line(s) of the main table which references the line of table1 for which name is equals to “bob”.

Something like :

SELECT * from main where table1.name = "bob"

If no complete solution, could you point me to some documentation ?
I think I miss vocabulary to find proper ressurces to do that.

Thanks by advance

  • 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-09T17:30:10+00:00Added an answer on June 9, 2026 at 5:30 pm

    You mean like SELECT oid FROM MAIN WHERE table1 IN (SELECT oid FROM TABLE1 WHERE name = 'bob')?

    table1 == foreign key from MAIN to TABLE1.

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

Sidebar

Related Questions

I have a SQL Server 2005 database with several tables. One of the tables
I have a database with several tables, each one containing columns that may not
I have a SQL Server Database with several tables. One of them has ID
I have a mysql database which have set of tables One table have a
I have one bat file on windows7, for backup several tables from my database,
At my company we have a database with one table being so big that
I have several database tables in one database. The user inputs data to be
I have several database tables that just contain a single column and very few
I have a database with several hundred tables imported from a third source. Using
I have an Access database (in Access 2003) with several tables, and data must

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.