troubleshooting Question

Combine two select queries

Avatar of movieprodw
movieprodw asked on
2 Comments1 Solution469 ViewsLast Modified:

I have this query:
SELECT member_id AS dealer_id, dealer_name FROM client_information WHERE dealer_name <> '' AND member_id IS NOT NULL AND membership_status = '1' LIMIT 3

and I want it to also check if there are any active vehicles, if not then I want them to excluded from the search.

table name 'vehicle_data' and we could count where member_id = dealer_id AND active = '1'

Thanks for any help
Aaron Tomosky
Director, SD-WAN Solutions

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros