Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

How to get first positive numbers in partition

$
0
0
Let's say I have following table. I want to select 1,2,3,4 since they are the last positve Numbers. Can I do it in analytic query?
Code:

ID        VALUE
1        200.00
2        100.00
3        1.00
4        0.00
5        -10.00
6        100.00
7        -250.00
8        -350.00
9        -40.00
10        40.00
11        0.00
12        2.00


Viewing all articles
Browse latest Browse all 13329

Trending Articles