G
Guest
For my report I need to list the most recent item per group. I have the query
listing machine, projects machine is used for, date for the project and some
details for each project.
To simplify say I have the following fields: machine, project, date,
location. machine comes from tblMachine which holds machine details. other
fields come from tblProjects which holds all project related details. Those
tables are linked by machineserialnumber.
For each machine I need to list the most recent project, showing machine,
project, date and location. I can do it by using nested queries but I have
seen advice in the book that SQL query will give me better performance. What
is the SQL code I need to use to do what I need.
Thanks for help.
Tony
listing machine, projects machine is used for, date for the project and some
details for each project.
To simplify say I have the following fields: machine, project, date,
location. machine comes from tblMachine which holds machine details. other
fields come from tblProjects which holds all project related details. Those
tables are linked by machineserialnumber.
For each machine I need to list the most recent project, showing machine,
project, date and location. I can do it by using nested queries but I have
seen advice in the book that SQL query will give me better performance. What
is the SQL code I need to use to do what I need.
Thanks for help.
Tony