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

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 14773

Trending Articles



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