you could create a view using the SQL below and set the datasource of pjinvdet to point ... from pjinvdet d inner join pjtran t on t.fiscalno = left(in_id12,6) and t.system_cd = SUBSTRING(in_id12, 7,2) and batch_id = SUBSTRING(in_id12,9,10) and detail ...
↧