DBA Data[Home] [Help]

VIEW: APPS.HZ_DQM_PS_V

Source

View Text - Preformatted

SELECT b.party_site_id dqparty_site_id, b.party_id dqparty_id, decode(b.status,'A','Active','I','Inactive',NULL) dqstatus, NVL(arpt_sql_func_util.get_lookup_meaning ('REGISTRY_STATUS',b.status),b.status) dqstatusm, c.address1||DECODE(c.address2,NULL,NULL,'-'||c.address2) dqaddress, c.county dqcounty, c.province dqprovince, c.city dqcity, c.state dqstate, c.postal_code dqpostal_code, t.territory_short_name dqcountry FROM hz_party_sites b, hz_locations c, fnd_territories_vl t WHERE b.location_id = c.location_id AND NVL(b.status,'A') NOT IN ('M') AND c.country = t.territory_code(+)
View Text - HTML Formatted

SELECT B.PARTY_SITE_ID DQPARTY_SITE_ID
, B.PARTY_ID DQPARTY_ID
, DECODE(B.STATUS
, 'A'
, 'ACTIVE'
, 'I'
, 'INACTIVE'
, NULL) DQSTATUS
, NVL(ARPT_SQL_FUNC_UTIL.GET_LOOKUP_MEANING ('REGISTRY_STATUS'
, B.STATUS)
, B.STATUS) DQSTATUSM
, C.ADDRESS1||DECODE(C.ADDRESS2
, NULL
, NULL
, '-'||C.ADDRESS2) DQADDRESS
, C.COUNTY DQCOUNTY
, C.PROVINCE DQPROVINCE
, C.CITY DQCITY
, C.STATE DQSTATE
, C.POSTAL_CODE DQPOSTAL_CODE
, T.TERRITORY_SHORT_NAME DQCOUNTRY
FROM HZ_PARTY_SITES B
, HZ_LOCATIONS C
, FND_TERRITORIES_VL T
WHERE B.LOCATION_ID = C.LOCATION_ID
AND NVL(B.STATUS
, 'A') NOT IN ('M')
AND C.COUNTRY = T.TERRITORY_CODE(+)