您好我正在尝试将以下每个查询的结果合并到一个查询中。我知道我可以做一个联合,但我想知道是否有更好的方法,因为每个表都有不同的列?谢谢
select distinct RESOURCE_ID from USER_ROLES where TEST_IND ='Y'
select distinct RESOURCE_ID from USER_PLATFORMS where TEST_IND ='Y'
select distinct RESOURCE_ID from USER_COMPETENCIES where TEST_IND ='Y'
select distinct RESOURCE_ID from USER_TECH_SKILLS where TEST_IND ='Y'
select distinct RESOURCE_ID from USER_MGR_SKILLS where TEST_IND ='Y'
select distinct RESOURCE_ID from USER_APPS where TEST_IND ='Y'
select distinct RESOURCE_ID from BUS_PROCS where TEST_IND ='Y'