Quantcast
Viewing all articles
Browse latest Browse all 42

Answer by Chris for MySQL - What JOIN should i use? 2 Tables, Not the same number of members

I think you need to rethink your table structure. Having member_1, member_2, member_3, member_4 is just going to cause more problems in the long run. Especially when your trying to relate data.

I'd propose you have the chars table like it is.

Keep the "special" table, but move the members into their own table and relate them to the special table by the id.

so for members you'd have

special_id, member

Now you can use an inner join and get all the data you want.


Viewing all articles
Browse latest Browse all 42

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>