Query:

SELECT p.prod_no, SUM(s.qty_Order) as "Total Order"
FROM sales_order_t5 s
FULL OUTER JOIN product p
ON p.prod_no = s.product_no
GROUP BY prod_no;

Output:

PROD_N Total Order
------ -----------
0001             4
0006
0005
0002             2
0004            10
0003             2

Leave a Reply

Subscribe to Posts | Subscribe to Comments

All Notes on BCA

All Notes  on BCA
BCA all subjects notes

Total Pageviews

Translate

Powered by Blogger.

Copyright © All Notes on BCA