return only one record where dates are differnt byt 2 columns same results (1 Viewer)

megatronixs

Registered User.
Local time
Today, 22:47
Joined
Aug 17, 2012
Messages
719
Hi all,

I came across a silly thing that I can't figure out.
I have 3 almost same records, the only difference is that they have a different time (hour and minutes) in the field "created'
as you can see from below:
15/09/2017 09:25 John Secada Started 05/09/2017
15/09/2017 11:59 John Secada Started 05/09/2017
17/09/2017 09:40 John Secada Started 05/09/2017

Is there anyway to only have a query that will only show the youngest date?

Greetings.
 
Last edited:

Ranman256

Well-known member
Local time
Today, 16:47
Joined
Apr 9, 2015
Messages
4,339
make a query, qsEarliest,
turn on summation, use the MIN setting to the the earliest time of that day.
PERSON, DATE, MIN(created)
(this give you the person and the earliest record for that 1 day)

make another query,
then join the query above (qsEarliest) to your tData table,
join on NAME, to both
and qsEarliest.MinOFCreated to tData.CreatedDate
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 04:47
Joined
May 7, 2009
Messages
19,229
Use the Max() ( function instead of Min
 

Users who are viewing this thread

Top Bottom