I never really did ms access queries, but today I need one. I have 2 tables, models and orders. From first table one 2 fields are of interest here: number and color, from second only number which can only be equal to values of number from table “models” . What I need is to select most frequent color. In mysql that would be something like
SELECT models.color, orders.number FROM models
INNER JOIN orders ON (orders.number =models.number)
group by color
order by count(color) desc limit 1
But in ms-access that doesn’t seem to work
How do you write query to do same thing in ms-access?
try this: