I do have the following query which displays two results.
Query:
select /*+ parallel(16) */ * from CONTRACT where CONTRACT_ID ='1234'; Result:
_____________________________________________________________________________________ |CONTRACT_SOURCE | CONTRACT_ID | ROLE | ROLE_ID | STD_CD | INDEX _____________________________________________________________________________________ |Source | 1234 | role_driver | unique1 | LOAD | 9 |Source | 1234 | role_insured| unique2 | LOAD | 9 _____________________________________________________________________________________ I would like to fetch these results merged to in the below format.
_____________________________________________________________________________________________________________________ |CONTRACT_SOURCE | CONTRACT_ID | ROLE | ROLE_ID | ROLE | ROLE_ID | STD_CD | INDEX | _____________________________________________________________________________________________________________________ |Source | 1234 | role_driver | unique1 | role_insured | unique2 | LOAD | 9 | _____________________________________________________________________________________________________________________ Can I achieve this through an Oracle query?