Azure Synapse SQL on-demand pagination (OFFSET/FETCH)

Copper Contributor
We have Azure data lake - where the data is stored in parquet file format. We are trying to fetch the data from the parquet file using Azure synapse SQL-on Demand.

 

What we are looking for is - pagination while fetching the data. So if there are 10,000 records matching to the criteria, we want to return only 100 rows on UI and then next 100 etc. In SQL query there is OFFSET/FETCH which we can use.

 

How to do such thing for SQL on-demand query? Here is our sample query of SQL on demand.

 

 

 

SELECT * FROM 
    OPENROWSET
     ( 
       BULK '*.parquet',  
       FORMAT='PARQUET'
     ) 
     AS rows

 

 

 

0 Replies