my dog learned polymorphism
The moose likes JDBC and Relational Databases and the fly likes I'd like to select a customer that never made a sale Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "I Watch "I New topic
Author

I'd like to select a customer that never made a sale

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 634


As you see, if the customer never made a sale, the resultset will not be
included, how can I make it included?
Thanks
Jack
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3719
    
  61

An outer join should do the trick again, as it did here.

This time it is a bit more complicated, since you need to combine inner and outer joins in your query. I'd suggest googling combining inner and outer join.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I'd like to select a customer that never made a sale
 
It's not a secret anymore!