On Sat, Nov 8, 2008 at 9:19 PM, Lukas Barton <[EMAIL PROTECTED]> wrote:
> Tak jsem si konecne poradne precetl zadani.
> V mem druhem pokusu staci != nahradit za not < ;-)
> from Person person where not exists(from Person diff where 
> diff.name=person.name and not(person.id<diff.id))

Tohle se zase votaci samo na sebe - not (id1 < id2)   tomu nezabrani
protoze not(id1<id2)  ==  (id1>=id2)

Tohle by to ve vasi variante pokrylo:

and (diff.id > person.id)  - vyber prvku s max id    aka  not
(diff.id<=person.id)
and (diff.id<person.id) - vyber prvku s min id   aka   not (diff.id>=person.id)


VS

Odpovedet emailem