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

Conversion of oracle query into teraadata query(Row id is not working) - response (1) by dnoeth

$
0
0
What is this query supposed to return? Seems to be a single row per productid, but as ROWID without unique ordering is not reliable there's no guarantee for a consistent result set. Or are table1 and table2 Derived Tables (Oracle calls them Inline Views) of the same table? Then it's probably a simple select * from tab qualify row_number() over (partition by productid order by whatever_defined_max_rowid desc) = 1 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>