I have made a query that takes info from a client table, and lists all of the visits for the past two years. The visit details are stored in a separate table which includes all the visit info for all customers. What I need is to only include the most recent visit for each client. If someone could show an example of an SQL statement that would not return the previous visits for each customer I'd like to try to adapt it myself. I'd appreciate any suggestions that might lead me to a moment of epiphany here.
Just make up your own fields for the example, I'm just looking for a path to explore to try and figure out the solution.
Thanks in advance for any advice.