Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Concatenate the results - response (1) by teradatauser2

$
0
0

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

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>