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

qualify rank() over (partition) - question - response (5) by dnoeth

$
0
0

Did you try the query i posted, this should work as expected.
But performnace on a 5 billion rows table will be probably poor when you actually need all those 100 columns (all data will be put in spool twice). 
It might be better to run the QUALIFY on the neccessary columns and then join back to get the remaining columns.
 
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>