Вот версия с параметризованными идентификаторами клиентов
with
Cust1 as (select 'C1' as C_id from DUAL)
,Cust2 as (select 'C2' as C_id from DUAL)
select (select C_id from Cust1) ID1,
coalesce(t1.K, t2.K) Key1,
t1.V as Value1,
(select C_id from Cust2) ID2,
coalesce(t2.K, t1.K) Key2,
t2.V as Value2
from
(select * from t where id = (select C_id from Cust1)) t1
full outer join (select * from t where id = (select C_id from Cust2)) t2
on t1.k = t2.k
для проверки, которую я использовал
with
Cust1 as (select 'C1' as C_id from DUAL)
,Cust2 as (select 'C2' as C_id from DUAL)
,t as (
select 'C1' ID, 'AskPhoneNo' K, 'TRUE' V union
select 'C1', 'Website', 'C1Website.com' union
select 'C1', 'Report', 'TRUE' union
select 'C2', 'AskPhoneNo', 'TRUE' union
select 'C2', 'Report', 'FALSE' union
select 'C2', 'AskAddress', 'TRUE')
select (select C_id from Cust1) ID1,
coalesce(t1.K, t2.K) Key1,
t1.V as Value1,
(select C_id from Cust2) ID2,
coalesce(t2.K, t1.K) Key2,
t2.V as Value2
from
(select * from t where id = (select C_id from Cust1)) t1
full outer join (select * from t where id = (select C_id from Cust2)) t2
on t1.k = t2.k