I have 2 tables
Table name : Customer
+----+----------------+--------------+
| ID |Name | Supervisor |
+----+----------------+--------------+
| C1 | Jenny | 2011-Apr-2 |
| C2 | Jack | 1975-May-8 |
| C3 | May | 1953-Sept-3 |
+----+----------------+--------------+
Table name: Family
+----+----------------+--------------+-----------+
| ID | Name | Cust_id | Status |
+----+----------------+--------------+-----------+
| F1 | James | C1 | Spouse |
| F2 | Charlie | C1 | Child |
| F3 | Jane | C3 | Child |
+----+----------------+--------------+-----------+
With these 2 tables, I would like to create a new table which joining 2 tables together. (using CREATE TABLE clause)
Table name : Membership
+---------------+------+-------------+-------------+
| Membership_id | Id | Name | Date_created|
+---------------+------+-------------+-------------+
| M1 | C1 | Jenny | 2017-Dec-5 |
| M2 | F1 | James | 2018-Jan-2 |
| M3 | F2 | Charlie | 2018-Jan-15|
| M4 | F3 | Jane | 2018-Jan-26|
| M5 | C3 | May | 2018-Feb-4 |
+---------------+--------------------+-------------+
I will use the membership id to book the item. Table name : Book (mem_id is link to Membership_id)
+---------------+----------+-------------+
| Book_id | mem_id | Book_item |
+---------------+----------+-------------+
| B1 | M2 | Chair |
| B2 | M3 | Table |
| B3 | M5 | Table |
+---------------+----------+-------------+
I'm a total beginner and tried using JOIN and UNION but not able to get the result as I wanted.. Seek for help