$ 0 0 Hi Sagar , Please find the query below . Hope it helps . SEL X.Account1 , ID1 , A.COL3 FROM TableA X INNER JOIN ( SEL Account1 ,ROW_NUMBER() OVER ( ORDER BY Account1 ) COL3 FROM TableA GROUP BY 1 ) A ON X.Account1 = A.Account1;
Hi Sagar ,
Please find the query below . Hope it helps .
SEL
X.Account1 ,
ID1 ,
A.COL3
FROM TableA X
INNER JOIN
( SEL Account1 ,ROW_NUMBER() OVER ( ORDER BY Account1 ) COL3
FROM TableA
GROUP BY 1 ) A
ON
X.Account1 = A.Account1;