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?
Here’s a better structure:
Edit
If you want to see what lasers are associated with feature_id = 1, then you can join like this:
If you want to see what features are associated with laser_id = 1, then you can join like this: