Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: One line in UNION ALL Query for sum total UDF in AR and AR CR

$
0
0

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


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>