SELECT DISTINCT sc.setid , c.storage_area , c.stor_level_1 , c.stor_level_2 , c.stor_level_3 FROM ps_set_cntrl_rec sc , PS_BUS_UNIT_TBL_IN a , ps_bus_unit_tbl_fs b , ps_stor_loc_inv c , ps_stor_area_inv sa WHERE sc.recname = 'MASTER_ITEM_TBL' AND a.business_unit = sc.setcntrlvalue AND a.business_unit = b.business_unit AND a.bu_status = '1' AND a.business_unit = c.business_unit AND c.wip_loc_flg = 'Y' AND c.delete_storloc_flg = 'N' AND c.business_unit = sa.business_unit AND c.storage_area = sa.storage_area AND sa.st_level_display > '2'
|