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

Is there a limitation on the Merge statement and Rank Function? - response (5) by Fred

$
0
0
No. Use the ANSI windowed format if this is what you intend: RANK() OVER (PARTITION BY Account_Number, Date_Added, Time_Added) In the (deprecated) Teradata RANK syntax, the columns only specify sort order; i.e. your query is effectively computing RANK() OVER (ORDER BY Account_Number, Date_Added, Time_Added)   And regarding your question on MERGE, all columns in the PI/PPI must be directly specified with an equality predicate in the ON clause. So it is not possible to "match" a NULL value in one of those columns.

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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