On 2005-08-13 15-57-29 gniewosh <pl> wrote:
This should be a solution for THIS case:
SELECT name FROM table ORDER BY surname GROUP BY name
I'm not in Pg, so I am unable to answer this question, sorry. For the same
reason, you should be careful with the solution I posted above, since there
might be a much better solution.
HTH (at least a little),
Simon Stienen <http://slashlife.org/>
"What you do in this world is a matter of no consequence,
The question is, what can you make people believe that you have done."
/Sherlock Holmes in A Study in Scarlet by Sir Arthur Conan Doyle/