Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Join question

$
0
0

I have 2 tables 1 of customers and another of customer orders.

I want to get a list of Customers with no orders. In my query I just added a where clause to check "NOT IN" to the customer orders table to only get the list of customers with no orders. Is there a better way?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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