I have the following query:
select distinct name, datetime,email,amount from table where datetime >= '1/1/2003'
and description in ('Membership')
order by datetime
My problem is the following, there are many duplicate names in the database, however the subsequent information is different. So distinct is doing nothing. I want it to only select all the data for the distinct names.
select distinct name, datetime,email,amount from table where datetime >= '1/1/2003'
and description in ('Membership')
order by datetime
My problem is the following, there are many duplicate names in the database, however the subsequent information is different. So distinct is doing nothing. I want it to only select all the data for the distinct names.