Hi,
Here are the table structures:
create table dbz.tblMyrAllCompleted(jobid int);
create table dbz.tblAllPrimusPlac(
PlslID int,
Category char(30),
Department char(30),
ordid int,
jobid int,
costcentre int);
create table dba.tblImpPrimusTemp(
PlslID int,
invoice_no int,
ItemName char(30)...