sorry this is a repost of the last reply of my previous thread which somehow has messed up.
SELECT "PR"."PRNUM", "PR"."ISSUEDATE", "PR"."REQUIREDDATE",
"COMPANIES"."COMPANY", "COMPANIES"."ADDRESS1",
"COMPANIES"."ADDRESS2",
"COMPANIES"."ADDRESS3", "COMPANIES"."ADDRESS4",
"COMPANIES_1"."NAME",
"COMPANIES_1"."ADDRESS1", "COMPANIES_1"."ADDRESS2",
"COMPANIES_1"."ADDRESS3",
"COMPANIES_1"."ADDRESS4", "COMPANIES_1"."CONTACT",
"COMPANIES_1"."PHONE"
FROM "MAXIMO"."PR" "PR", "MAXIMO"."COMPANIES" "COMPANIES_1",
"MAXIMO"."COMPANIES" "COMPANIES"
WHERE ("PR"."VENDOR"="COMPANIES_1"."COMPANY") AND ("PR"."SHIPTO"="COMPANIES"."COMPANY") AND "PR"."PRNUM"='25289'
SELECT "PR"."PRNUM", "PR"."ISSUEDATE", "PR"."REQUIREDDATE",
"COMPANIES"."COMPANY", "COMPANIES"."ADDRESS1",
"COMPANIES"."ADDRESS2",
"COMPANIES"."ADDRESS3", "COMPANIES"."ADDRESS4",
"COMPANIES_1"."NAME",
"COMPANIES_1"."ADDRESS1", "COMPANIES_1"."ADDRESS2",
"COMPANIES_1"."ADDRESS3",
"COMPANIES_1"."ADDRESS4", "COMPANIES_1"."CONTACT",
"COMPANIES_1"."PHONE"
FROM "MAXIMO"."PR" "PR", "MAXIMO"."COMPANIES" "COMPANIES_1",
"MAXIMO"."COMPANIES" "COMPANIES"
WHERE ("PR"."VENDOR"="COMPANIES_1"."COMPANY") AND ("PR"."SHIPTO"="COMPANIES"."COMPANY") AND "PR"."PRNUM"='25289'