Menu
I have the following tables like below:
“`
Table – mytags
| tag_id | tag_name |
| 1 | home |
| 2 | work |
TABLE – mytasks
| task_id | task_name |
| 14 | do my the dishes |
| 12 | Make presentation |
TABLE – mytasks_mytags
| mytag_id | mytask_id |
| 1 | 14 |
| 2 | 14 |
Given that i have the id of the mytask table EG. “14” , now i given that i would like to select the mytasks_mytags.mytag_id that are associated with the mytasks_mytags.mytask_id I.E. “14” and then get the mytasks.task_name , how do i merge this inside one
query in mysql ?