I'm just wondering if this is possible. I'm trying show all results from one table and grab more details from respective group(table)
+--------------------------+ +--------------------------+
| table group_a | | table group_b |
+--------------------------+ +--------------------------+
| id name age | | id name age |
| s01 John 10 | | s11 Clark 11 |
| s02 Jane 11 | | s12 Cherry 09 |
+--------------------------+ +--------------------------+
+----------------------------+
| table result_1 |
+----------------------------+
| id result group |
| s01 9 a |
| s12 10 b |
| s11 9 b |
| s02 7 a |
+----------------------------+
I was hoping to get this output
id name age result
+------------------------------------+
s12 Cherry 09 10
s01 John 10 9
s11 Clark 11 9
s02 Jane 11 7
I'm kind of stuck on how to point my query to different tables. Anyway I just want to know if this is possible or I should go for different approach.
B'rgrds,