create view pf_view_channel_interface as SELECT A.CHANNEL_ID         AS CHANNEL_ID,
       B.INTERFACE_ID       AS INTERFACE_ID,
       A.CHANNEL_NO         AS CHANNEL_NO,
       A.LEASING_CHANNEL_NO AS LEASING_CHANNEL_NO,
       A.SECRET_KEY         AS SECRET_KEY,
       B.INTERFACE_NO       AS INTERFACE_NO,
       B.URL                AS URL,
       A.LEASING_MANAGER_NO AS LEASING_MANAGER_NO,
       B.PUSH_TYPE          AS PUSH_TYPE
FROM (APZL.PF_CHANNEL A
JOIN APZL.PF_INTERFACE B ON ((A.CHANNEL_ID = B.CHANNEL_ID)))
WHERE ((A.CHANNEL_STATUS = 'ENABLED') AND (B.INTERFACE_STATUS = 'ENABLED') AND (B.URL IS NOT NULL) AND (A.SECRET_KEY IS NOT NULL) AND
       (A.LEASING_CHANNEL_NO IS NOT NULL));

