Jump to content

UNION ALL


MrXHellboy

Recommended Posts

 

Hello,

 

This query seems to only receive the result from the first SELECT statement, and it doesnt add the COUNT() amounts together.

 

(SELECT a_LEV_NR, COUNT(DISTINCT ASN_ORDER), COUNT(ASN_ORDER), a_LEVER_WEEK

FROM qty_discrepancies

GROUP BY a_LEV_NR)

UNION ALL

(SELECT a_LEV_NR, COUNT(DISTINCT ASN_ORDER), COUNT(ASN_ORDER), a_LEVER_WEEK

FROM tht_tgt_discrepancies

GROUP BY a_LEV_NR)

 

Could someone help me out ?

 

Link to comment
https://forums.phpfreaks.com/topic/238829-union-all/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.