Click here to Skip to main content
14,869,895 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi everyone,

I have to implement OFFSET function of Excel in SQL Server. I am a beginner. I need help to begin with. Hope I ll get some ideas on it. Thanks in advance.
Posted
Comments
ZurdoDev 9-Sep-13 11:16am
   
http://technet.microsoft.com/en-us/library/gg699618.aspx

1 solution

I don't think this is a valid concept in SQL, despite it being displayed in most query results like Excel SQL is completely different, there are no concepts of row offsets in SQL (even column offsets are not the same). Rows are not really related to each other, so you can't say that one row is a certain "distance" from another row.

You may be able to do some kind of complicated inner select to get the data you want, it would help if you gave us an example of your data and what you would like to have returned.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900