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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:46:10+00:00 2026-05-23T19:46:10+00:00

I have two tables I need to join together and I’m unsure how to

  • 0

I have two tables I need to join together and I’m unsure how to do it. I’m still trying to learn how join works and I know there are a bunch of different kinds. Here are my tables:

laser    feature1   feature2   feature3
laser1   1          1          0
laser2   1          0          1
laser3   1          1          0


feature_name   feature_text
Feature #1     Text 1
Feature #2     Text 2
Feature #3     Text 3

How do I join these two tables together so I get only the feature_names and feature_texts where there is a 1 in the top 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-23T19:46:11+00:00Added an answer on May 23, 2026 at 7:46 pm

    Here’s a better structure:

    laser (Table)
    -------------
    laser_name, laser_id
    
    feature (Table)
    ---------------
    feature_name, feature_texts, feature_id
    
    feature_laser (Table)
    ---------------------
    laser_id, feature_id
    

    Edit

    If you want to see what lasers are associated with feature_id = 1, then you can join like this:

    select laser_name from laser
        inner join feature_laser on feature_laser.laser_id = laser.laser_id
    where feature_id = 1;
    

    If you want to see what features are associated with laser_id = 1, then you can join like this:

    select feature_name from features
        inner join feature_laser on feature_laser.feature_id = features.feature_id
    where laser_id = 1;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to join two tables together, but have an odd requirement. Normally
I have three tables that I need to join together and get a combination
I have two tables that I need to join. These are: art id |
I'm trying to generate a SQL query that can join two tables together and
I have two tables, for Users and Songs. I need to JOIN them both
I have the following code that will join two different tables together and provide
I have two mysql tables that I am querying together and the query works
I have two tables, which I need to join by one column and is
i have two mysql tables which are linked together and i need to show
I have below two tables which i need to combine together into my daily

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.