I've read for hours but am getting nowhere, so was wondering if I could get a little help. Here is my problem, which should be simple for experts (trouble is I am a total noob)
I would like to only get each unique user and their earliest time recorded, just like this:
Any thoughts? The simpler the query, the better. Thanks!
You could use a simple GROUP BY
with MIN
:
SELECT Username, MIN(Datecolumn) As Datecolumn
FROM dbo.TableName
GROUP BY Username
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With