Avatar of movieprodw
 asked on

Combine two select queries


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

Avatar of undefined
Last Comment

8/22/2022 - Mon
Aaron Tomosky

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

awesome, thanks
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy