Hi,
I have this page that is displaying 2 columns, one is the date in which the document was downloaded and the other the email of the user.
I need to show only unique emails but if I use DISTINCT it also looks for unique dates.
This is what I have:
SELECT DISTINCT EMAIL, DATE FROM logs
If I take the DATE column out, it works perfect but I need it.
Is there anyway to select unique emails and that it only show the first date in the query?
Thanks in advance,
sbayter
I have this page that is displaying 2 columns, one is the date in which the document was downloaded and the other the email of the user.
I need to show only unique emails but if I use DISTINCT it also looks for unique dates.
This is what I have:
SELECT DISTINCT EMAIL, DATE FROM logs
If I take the DATE column out, it works perfect but I need it.
Is there anyway to select unique emails and that it only show the first date in the query?
Thanks in advance,
sbayter