Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9080

Re: how to pass last record that have few input records

$
0
0

Hi llan,

 

You can use previous_row value function. Use if previous_row > current_row or vice versa then 1 else 0. Select 1s and discard 0s.

Another method is first sort by c3; use gen_row_num_by_group() combining c2 and c3 to generate row count. In the next query select the record with max row count value of the generated gen_row_num_group().

 

Arun


Viewing all articles
Browse latest Browse all 9080

Trending Articles



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