sel temp.value2,row_number() over (order by temp.value2) as rownum1
from (
sel a.Acct_Nbr || '/' || b.Acct_Nbr as value1 from tduser.checking_tran1 a cross join tduser.checking_tran1 b
where a.Acct_Nbr<>b.Acct_Nbr
) temp(value2)
qualify rownum1 =1
create table checking_tran1 with data 'abc', and 'def' and test.
o/p - abc/def
sel temp.value2,row_number() over (order by temp.value2) as rownum1
from (
sel a.Acct_Nbr || '/' || b.Acct_Nbr as value1 from tduser.checking_tran1 a cross join tduser.checking_tran1 b
where a.Acct_Nbr<>b.Acct_Nbr
) temp(value2)
qualify rownum1 =1
create table checking_tran1 with data 'abc', and 'def' and test.
o/p - abc/def