We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ErikEJ/SqlServer.Rules'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
ImplicitRangeWindow.sql•458 B
/* Default is Range UNBOUNDED PRECEDING ( Defining the frame )*/
Create Procedure dbo.ImplicitRangeWindow
as
Set nocount on
select sum(TestTableSSDT.Col1) over(partition by TestTableSSDT.IdCol
order by TestTableSSDT.Col2
) as RollingBalance,
row_number() over(partition by TestTableSSDT.IdCol
order by TestTableSSDT.Col2 ) as Rown
from dbo.TestTableSSDT
order by Col1,Col2;
-- SML026