Hi
try this:
SELECT T.Num, T.Total FROM
(SELECT docnum AS 'Num', doctotal AS 'Total' FROM OINV
UNION ALL
SELECT docnum AS 'Num', doctotal AS 'Total' FROM ORIN) T
Remember to select the same number fields and the type fields in order in both select.
Kind regards
Agustín Marcos Cividanes