<retrieve>PBSELECT( VERSION(400) TABLE(NAME="quot_stockist" ) COLUMN(NAME="quot_stockist.cust_code__dist") COLUMN(NAME="quot_stockist.cust_code__stk") COLUMN(NAME="quot_stockist.quot_no") COLUMN(NAME="quot_stockist.cust_code") COLUMN(NAME="quot_stockist.line_no") COMPUTE(NAME="(select cust_name from customer where cust_code = quot_stockist.CUST_CODE__DIST) as distributor_name") COMPUTE(NAME="(select cust_name from customer where cust_code = quot_stockist.CUST_CODE__STK) as stockist_name") COMPUTE(NAME="(select city from customer where cust_code = quot_stockist.CUST_CODE) as city_name") COMPUTE(NAME="(select SITE_CODE__PBUS from customer where cust_code = quot_stockist.CUST_CODE__DIST) as site_code") COMPUTE(NAME="(select cust_name from customer where cust_code = quot_stockist.CUST_CODE) as hospital_name") COMPUTE(NAME="(select cust_code from customer where cust_code = quot_stockist.CUST_CODE) as cust_code")) </retrieve>
<table_column>
<typesize="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>cust_code_desc</name>
<dbname>cust_code_desc</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME="quot_stockist" ) COLUMN(NAME="quot_stockist.cust_code__dist") COLUMN(NAME="quot_stockist.cust_code__stk") COLUMN(NAME="quot_stockist.quot_no") COLUMN(NAME="quot_stockist.cust_code") COLUMN(NAME="quot_stockist.line_no") COMPUTE(NAME="(select cust_name from customer where cust_code = quot_stockist.CUST_CODE__DIST) as distributor_name") COMPUTE(NAME="(select cust_name from customer where cust_code = quot_stockist.CUST_CODE__STK) as stockist_name") COMPUTE(NAME="(select city from customer where cust_code = quot_stockist.CUST_CODE) as city_name") COMPUTE(NAME="(select SITE_CODE__PBUS from customer where cust_code = quot_stockist.CUST_CODE__DIST) as site_code") COMPUTE(NAME="(select cust_name from customer where cust_code = quot_stockist.CUST_CODE) as hospital_name") COMPUTE(NAME="(select cust_code from customer where cust_code = quot_stockist.CUST_CODE) as cust_code") COMPUTE(NAME="(select cust_name from customer where cust_code = quot_stockist.CUST_CODE) as cust_code_desc")) </retrieve>