Hello there! 👋 I'm Luca, a BI Developer with a passion for all things data, Proficient in Python, SQL and Power BI ...
Returns the sequential number of a row within a partition of a result set, starting at 1 for the first row in each partition. $sql = ' SELECT ROW_NUMBER() OVER ...
Starting from this conversation with Ken I investigated this issue a little more. My conclusion is that there should be an explicit order-by clause at the end of the outer query for windowed results.