hi,
can i get one example of following from this link
https://learn.microsoft.com/en-us/sql/t-sql/queries/select-window-transact-sql?view=sql-server-ver16
"If the <window_expression> is contained in a <query_specification> that is part of <query_expression> which is a simple table query, then the scope of the new window_name also includes the <order_by_expression>, if any, of that <query_expression>."
yours sincerley