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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:09:19+00:00 2026-05-24T18:09:19+00:00

I need data from 3 different tables: Catergory table Scoretable 1 Scoretable 2 What

  • 0

I need data from 3 different tables:

  1. Catergory table

  2. Scoretable 1

  3. Scoretable 2

What is now better for the performance?

  1. Make 3 seperated SELECT Queries

  2. Make 2 queries and connect scoretable 1 and 2 and make a normal select query for the categories

  3. Connect all 3 queries in 1?

Number 2:

SELECT scoretable1.category, scoretable1.score, scoretable2.score
FROM scoretable1, scoretable2
WHERE scoretable1.consultant = scoretable2.consultant 
AND scoretable2.consultant = '14' 
AND scoretable1.category = scoretable2.category

Thank you very much!

P.S. The category table is very small so I could export it also as a cache file as a serialized array? (Maybe the best way for this table)

  • 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-24T18:09:22+00:00Added an answer on May 24, 2026 at 6:09 pm

    My guess would be that it is best to do it in one query. But i’m not absolutely sure. Maybe the query analyser can help you out here.

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

Sidebar

Related Questions

I have a problem where I need to select data from three different tables,
Im using vb.net and I need to fetch data from two different tables and
I have two different tables from which I need to pull data blogs which
I need to select data from one table and insert it into another table.
Hello I currently 2 tables of data from different sources, I need to combine
tl;dr: I need to show data from two different tables in the list view
I need to get data from 3 different tables. I know the basics about
In certain areas in my application I need data from several tables in the
I need to retrieve data (vehicle details, in this case) from a MySQL table
I am using ActiveRecord in Rails 3 to pull data from two different tables

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.