How to use LIMIT function in SQL Server?
I need  to create a pagination using SQL Server data and I need to fetch the data using $start and $pagesize.
This is the query used:
  SELECT * 
  FROM Customers 
  LIMIT $start, $pagesize;
How to use LIMIT function in SQL Server?
I need  to create a pagination using SQL Server data and I need to fetch the data using $start and $pagesize.
This is the query used:
  SELECT * 
  FROM Customers 
  LIMIT $start, $pagesize;
 
    
     
    
    use this query
select * from (
SELECT  *,ROW_NUMBER() OVER ( ORDER BY az135 desc ) AS RowNum
FROM    ( SELECT     az13 FROM a12 WHERE   (az133 = '**') ) AS RowConstrainedResult )as a WHERE   RowNum >= 10 AND RowNum <= 20
