If I have this table:
I'm not able to understand difference about these 2 queries:
SELECT * rank() OVER(order by id )
SELECT * rank() OVER( )
ORDER BY id
In first case, the "order by" inside "over" clause, permits to order records inside the unique existing partition (because there is no "partition by" command) but why rank() returns always 1 for every records?
How does It understand records have the same value ? I don't specified no field according to evaluate rank.... seraphs It's implicits by "order by" clause?