Quantcast
Channel: SQL Windowing Functions: Are the results ordered? - Database Administrators Stack Exchange
Browsing all 3 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by Artashes Khachatryan for SQL Windowing Functions: Are the results...

This depends on the execution plan. This query scans the clustered index, then sorts the results by the ordered column to be able to apply sequence object, and then returns the results to the client....

View Article


Answer by Karl Fasick for SQL Windowing Functions: Are the results ordered?

Without a presentation ORDER BY clause, standard behavior returns a set in no particular order.I think Itzik Ben-Gan explains it best and even without one of his books, you can find the explanation in...

View Article

SQL Windowing Functions: Are the results ordered?

If I have a window function which uses something likeSELECT *, row_number() OVER (ORDER BY something) FROM tableshould the results be ordered?I am currently testing out my queries in Microsoft SQL...

View Article
Browsing all 3 articles
Browse latest View live