Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

CREATE OR REPLACE FORCE VIEW CUSTOM1.

VALIDATE_OWNER_CONDITION_VW ( ID, LOCATION_NAME, CLIENT_NAME, CONTRACT_NAME, OWNER_ID, OWNER_NAME, CONDITION_ID, CONDITION_NAME, ISSUE_REMOVE_IND, INACTIVE_IND, ORDER_PROCESS_TYPE_CODE, WORKCENTER_ID, WORKCENTER_NAME, WAREHOUSE_ID, WAREHOUSE_NAME, CREATED_BY, CREATED_TIMESTAMP, UPDATED_BY, UPDATED_TIMESTAMP ) AS SELECT oc.ROWID, lo.location_name, cl.client_name, co.contract_name, oc.owner_id, owner.owner_name OWNER_NAME, oc.condition_id, condition.condition_name CONDITION_NAME, oc.issue_remove_ind, oc.inactive_ind, oc.order_process_type_code, oc.workcenter_id, NVL (wc.workcenter_name, 'ALL'), oc.warehouse_id, NVL (whs.warehouse_name, ' '), oc.created_by, oc.created_timestamp, oc.updated_by, oc.updated_timestamp FROM custom1.validate_owner_condition oc INNER JOIN inventory1.geo_location lo ON oc.ses_customer_id = lo.ses_customer_id AND oc.location_id = lo.location_id INNER JOIN tp2.client cl ON oc.ses_customer_id = cl.ses_customer_id AND oc.client_id = cl.client_id INNER JOIN tp2.contract co ON oc.ses_customer_id = co.ses_customer_id AND oc.contract_id = co.contract_id INNER JOIN inventory1.owner owner ON oc.ses_customer_id = owner.ses_customer_id AND oc.owner_id = owner.owner_id INNER JOIN inventory1.condition condition ON oc.ses_customer_id = condition.ses_customer_id AND oc.condition_id = condition.condition_id LEFT OUTER JOIN wc1.workcenter wc ON oc.ses_customer_id = wc.ses_customer_id

AND oc.workcenter_id = wc.workcenter_id LEFT OUTER JOIN sl.warehouse whs ON oc.ses_customer_id = whs.ses_customer_id AND oc.warehouse_id = whs.warehouse_id;

You might also like