I have 2 Tables that need to be joined, to illustrate here are my tables:
Table baby
|id|name |action_id|
|1 |John |1 |
|2 |Jane |2 |
Table action
|id|action|details|
|1 |laugh |hihihi |
|1 |laugh |hahaha |
|2 |cry |huhuhu |
What I have:
|id|name |action_id|action|
|1 |John |1 |laugh |
|1 |John |1 |laugh |
|2 |Jane |3 |cry |
As I didn't need the details, here is what I want:
|id|name |action_id|action|
|1 |John |1 |laugh |
|2 |Jane |3 |cry |
Can someone help me make the right query?