How Can I Find End Of Range Of Id In This Query By With() Clause?
ALTER Proc [dbo].[SpValue](@Title nvarchar(50), @CountId int) As Begin With SameTitle As(