Hi,
I am somewhat new to access and have a query question I am struggling with, I think the answer may be a nested query but it has so far eluded me.
I need to do the following
select records from one table based on a criteria, (i.e. select a,b,c from table1 where b = 1)
then for each record matching the criteria, select the top 5 records from another table and sum one of the fields (i.e. select top 5 d, sum(e) from table2 where f = c) - for every c in the first query.
any help much appreciated
I am somewhat new to access and have a query question I am struggling with, I think the answer may be a nested query but it has so far eluded me.
I need to do the following
select records from one table based on a criteria, (i.e. select a,b,c from table1 where b = 1)
then for each record matching the criteria, select the top 5 records from another table and sum one of the fields (i.e. select top 5 d, sum(e) from table2 where f = c) - for every c in the first query.
any help much appreciated