> How do you know that you are not loosing any rows between set 1 and
> set 2?  Will there always be a 1:1 relationship code to row for each
> itmcode that is not deleted?

When you navigate into the grid, there is an information easily known : the 
current page number being loaded, while using a local var, i.e. pagenum
(init to 1, increase when next page, decrease when previous page).

So you can request :

SELECT * ;
    FROM ( SELECT TOP 20 * ;
        FROM ( SELECT TOP 20*pagenum   itemcode(, and whatever) ;
            FROM silver.dbo.items ORDER BY itemcode ) AS xx ;
        ORDER BY itemcode DESC ) AS yy ;
    ORDER BY itemcode

Gérard.




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/1326DC683D394A9E886EF44C6CCEEAD7@MuriellePC
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to