I have 02 tables.
table1
id_user id_group
0 32
0 31
0 33
62 32
62 31
62 33
120 31
120 33
table2
id parent_id name
31 18 AAA
32 18 BBB
33 18 CCC
I want to get group of user from specific user (id_user )
for example user jame(id=62) will be output
AAA | BBB | CCC
for example user jame(id=120) will be output
AAA | None | CCC
Could anybody help me To make SQL Query to get user belong to groups? thanks!