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

Would someone please explain ROW_NUMBER - response (1) by Qaisar Aftab Kiani

$
0
0
ROW_NUMBER generates the allocates a sequence number to the data set. In your case, for each unique combination of A.TID, D.PIN, Tyr (columns in the PARTITION BY clause) will have a unique sequence number and the allocation of that sequence number will be done according the sorting order defined by D.PIN, Tyr, D.Amt (columns in the ORDER BY clause). Seq_no is the allias of the columns returned by ROW_NUMBER function.

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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