MrDontKnowNothing
Programmer
hi folks,
when using a distinct on a table, i only get the data one time. that's fine but in the following example it's a little inappropriate...
having a table like this:
id | email
----------------
1 | a@b.com
2 | b@b.com
2 | c@b.com
3 | d@b.com
4 | e@b.com
4 | f@b.com
i want a select stmt wich only returns something like this
id | email
----------------
1 | a@b.com
2 | b@b.com
3 | d@b.com
4 | e@b.com
many thanks in advance!
alex
when using a distinct on a table, i only get the data one time. that's fine but in the following example it's a little inappropriate...
having a table like this:
id | email
----------------
1 | a@b.com
2 | b@b.com
2 | c@b.com
3 | d@b.com
4 | e@b.com
4 | f@b.com
i want a select stmt wich only returns something like this
id | email
----------------
1 | a@b.com
2 | b@b.com
3 | d@b.com
4 | e@b.com
many thanks in advance!
alex