Community

A Set-Based Way To Find Specific Rows

I have a table that includes a single-column primary key called IdValue. Given a particular value for IdValue, I want to find the table rows that are immediately before and after my target value (assuming the result set is sorted by IdValue). How can I avoid using cursors and get the result I want w

Read More - Register for Free Membership