SELECT * FROM TBL_PRODUCT WHERE pdt_category = 'books' AND pdt_category_idx = (SELECT MIN(pdt_category_idx) FROM TBL_PRODUCT WHERE pdt_seq IS NULL AND pdt_category_idx > 26)
TOP