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

The Archive Base Latest Questions

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

I am new to SQL and relational DBMS. I want to retrieve records from

  • 0

I am new to SQL and relational DBMS. I want to retrieve records from a relational database if they satisfy 3 given properties.

For example, if there is a table containing info about solids:

table_solid : |s_id|s_name|description| table_width : |w_id|w_name| table_height: |h_id|h_name| table_length: |l_id|l_name| 

where *_id are all primary keys.

I have 3 more tables for relating these tables with Foreign Keys.

table_s_h: |s_id|h_id| table_s_w: |s_id|w_id| table_s_l: |s_id|l_id| 

Would you please explain how do I join these.

Thanks in advance.

                 --------- table_length table_SOLID ----                 ----------- table_width                  ------------table_height 

table_length contains valid lengths that solid can take (and similarly with other tables).

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

    From a single table:

    Select *  FROM TABLE_NAME WHERE table_width = SOME_VALUE3 AND table_height= SOME_VALUE2 AND table_length = SOME_VALUE3 

    Is that what you are looking for? Or are you trying to query multiple tables? If so try this:

    Select *  FROM TABLE_SOLID solid Inner join table_width width on solid.w_id = width.w_id inner join table_height height on solid.h_id = height.h_id inner join table_length length on solid.l_id = length.l_id 

    This link may be of use to you http://dev.mysql.com/doc/refman/5.0/en/join.html

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

Sidebar

Related Questions

I need to create an entirely new Sql Server 2008 database and want to
Question: The new SQL Server 2008 database returns me values formatted English (date/float). Is
I am writing some new SQL queries and want to check the query plans
I'm new to SQL. I have a simple problem with getting the results from
Relational Database: Sql Server 2008 Programming Language: C# Used Framework: Enterprise Library 5.0 How
I am new to database programming and want some tips on performance / best
I use SQL Server. There are 2 databases, old and the new one. Databases
I'm new to SQL and relational databases and I have what I would imagine
I'm relatively new SQL queries, and I'm trying to join two tables in order
I would like to be able to add a new SQL LOGIN and name

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.