PARTITION BY divides the query result set into partitions. ORDER BY defines the logical order of the rows within each partition of the result set. If you don't specify PARTITION BY, the function ...