有两个表
1)表1(count_pk,名称,类型)
2)MappingTable2(countChild_fk,countParent_fk)
例如:
表1
count_pk | name | type
---------+--------+-------
1 | kk | t1
2 | tt | t1
3 | pp | t1
4 | ss | t1
5 | dd | t2
6 | rt | t2
MappingTable2
countChild_fk | countParent_fk
--------------+---------------
1 | 4
2 | 5
3 | 6
所需的输出
countChild_fk | countParent_fk | count_pk | nameOfTypeT1 | nameOfT2
--------------+----------------+----------+--------------+---------
1 | 4 | 1 | kk | ss
2 | 5 | 2 | tt | dd
3 | 6 | 3 | pp | rt
请告诉我加入查询是否需要加入或解决方案?