Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

SQL Syntax - response (3) by dnoeth

$
0
0

You probably need to a PARTITION to your ROW_NUMBER:
row_number() over (PARTITION BY col2 order by col1)
 
But you should check explain, it might do the STATS step before applying the WHERE filter.
Dieter


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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