SELECT
pmc_sales1."doc umentno" AS documentno,
pmc_sales1."aj_ date" AS date,
pmc_sales1."aj_ ordno" AS ordno,
pmc_sales1."aj_ total" AS total,
pmc_sales1."aj_ tax" AS tax,
pmc_salesline." aj_servicetype" AS servicetype,
pmc_salesline." aj_totalprice" AS totalprice,
pmc_salesrep."a j_sname"...