U kunt Row_Number()
. gebruiken in uw zoekopdracht en bestel SubscribeId
aflopend en row[0]["RowNumber"]
is totaal aantal als volgt:
Select
* ,
ROW_NUMBER() OVER ( ORDER BY SubscribeId DESC) as RowNumber
From billing.BillMaster As BM
Where
( Bm.SubscribeId = '12345674' )
Order by SubscribeId
OFFSET @PageNumber * @RowCount ROWS
FETCH NEXT @RowCount ROWS ONLY;