Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Left Join problem

$
0
0

SELECT CUSTOMER.CUSTOMER,NAME, ISNULL(SUM(SUBTOTAL + TAXES - PAID),0.00) AS BALANCE FROM CUSTOMER  LEFT OUTER JOIN ARH ON ARH.CUSTOMER = CUSTOMER.CUSTOMER  WHERE INVTYPE IN('REG') AND [OPEN] = 1
GROUP BY CUSTOMER.CUSTOMER, CUSTOMER.NAME ORDER BY CUSTOMER

I want to see all the customers and if they have a matching balance then show it. But, it only shows customers with a matching balance?


Debra has a question


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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