Selecting first date of many per client

G

Guest

I have a table where each record includes client ID and a visit date. Each
client ID is unique,but there can be multiple records per client ID with
different visit dates. Is there a way to build a query that selects only the
first visit date for each client ID? Seems like there ought to be a way to do
this but I can't seem to come up with it. Thanks.
 
N

Nick 'The database Guy'

Hi dvw,

Yes of course there is way!

What you need is an aggregate, or totals, query.

You must group by clientID and select to show the minimum of VisitDate.

Good luck

Nick
 
G

Guest

Thanks Nick - I'll give it a go!

Nick 'The database Guy' said:
Hi dvw,

Yes of course there is way!

What you need is an aggregate, or totals, query.

You must group by clientID and select to show the minimum of VisitDate.

Good luck

Nick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top