Check out example codes for "list in one column mysql". It will help you in understanding the concepts better.

Code Example 1

country table
-------------
id
name
other_column


rule table
----------
id
name
other_column


countryrules table
------------------
country_id
rule_id

Learn ReactJs, React Native from akashmittal.com