select * from res_category2 as category2 inner join res_detail_main as main on category2.page = main.page where category2.page = 'scaling' and category2.jijum like '%%' and category2.no = main.category_no group by program, category2.jijum