CREATE procedure [dbo].[cp_User_Increment] @channelId int, @currentPage int, @pageSize int, @userId int as begin select CurrentTime, Count from ( select *, ROW_NUMBER() OVER(ORDER BY CurrentTime DESC) AS RowNum from ( select ), AddTime, ) as CurrentT…