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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:05:15+00:00 2026-06-19T02:05:15+00:00

I am working on a mysql based project. I need to find out data

  • 0

I am working on a mysql based project. I need to find out data from more than one table.
I have searched and found a solution like

SELECT * from table_1, table_2 where (condition)

But such a solution is fine for few tables,and I have about 57 tables in my database.
Please let me know solution.

Thanks in 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-19T02:05:16+00:00Added an answer on June 19, 2026 at 2:05 am

    Sounds like you want to JOIN your tables. e.g.:

    SELECT  *
    FROM    table1
            INNER JOIN Table2
                ON Table1.table1ID = table2.table1ID
            LEFT JOIN Table3
                ON Table2.Table2ID = table3.table2ID;
    

    Unfortunately if you want data from all 57 tables, you will need to JOIN all 57 of them.

    The syntax you have used (ANSI 89), while it will work is generally best avoided (I believe there are times when Oracle will optimise these better), ANSI 92 joins are less prone to user error, and (to most people) more legible because the JOIN condition comes immediately after the table. Aaron Bertrand has written a good article on reasons to use ANSI 92 syntax over ANSI 89.

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

Sidebar

Related Questions

I am working on a personal project based in PHP and MySQL, and I
I'm trying to retrieve rows from a mysql table based on variables input by
I have been working on a project that takes a MySQL dump and restores
I am working on a PHP/MySQL based ecommerce engine, and need it to be
I'm working on a project that needs to have users log into a MySQL
I'm working on a project where there will be a MySQL database containing data
I'm working on a project aimed to analyze biometric data collected from various terminals.
I have this small project I have been working on. I have a MySQL
I'm a MySQL guy these days and have a .NET project that I'm working
I'm inserting multiple rows from one table to another, based on ID. For this

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.