SQL ACCESS (need ideas and help about a query) -


i new @ access sql , need query. want find customers prefer car (manufacturer , model) prefer_to_buy , prefer_to_rent no 1 else prefer.

for example if 2 customers prefer toyota aygo must not in result table.

customer(customer_id,name)

prefer_to_buy(customer_id,manufacturer,model)

prefer_to_rent(customer_id, manufacturer,model)

i have tried lot of ways including exists , know there must 2-3 subqueries cant work, ideas?

your problem definition vague, answer sort of generic. should try create left outer join on customer table and, example, "prefer_to_buy" table using customer_id join field, , include: customer_id,name left table , manufacturer,model right table. same logic applies prefer_to_rent table: can combine these 3 tables in single access sql query using aforementioned outer joins.

hope may help. best regards,enter code here


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -