select * from apps.MRP_SOURCING_RULES msrwhere organization_id=X. and msr.planning_active=2 /*and msr.planning_active=1*/