In MySQL and other engines I use a statement of the type:
SELECT reference FROM table WHERE field = 'iphone' ORDER BY reference LIMIT 2 OFFSET 0;
But in TeraData I can't find an equivalency to perform a paginated query.
I appreciate your ideas ;)