If I have a window function which uses something like
SELECT *, row_number() OVER (ORDER BY something) FROM table
should the results be ordered?
I am currently testing out my queries in Microsoft SQL Server, and it certainly seems to be ordered, but I know that this product has the tendency to order rows when it hasn’t been asked.
Is this the standard behaviour?