Select Top 100 * from shop_item_list a, shop_prdt_info b where a.it_code = b.it_code and status in ('Y') and a.it_code not in (select top 0 a.it_code from shop_item_list a, shop_prdt_info b where a.it_code = b.it_code and status in ('Y') and left(categorycode,3)='013' order by DISPLAY_SEQ_CATE1) and left(categorycode,3)='013' order by DISPLAY_SEQ_CATE1