All pastes #917882 Raw Edit

Anonymous

public text v1 · immutable
#917882 ·published 2008-02-25 19:28 UTC
rendered paste body
SELECT a_relasjon.id1, a_relasjon.id2, a_relasjon.id3, a_hoved.navn
FROM a_relasjon LEFT JOIN a_hoved ON ( a_hoved.id = a_relasjon.id1 )
WHERE a_relasjon.slettet_dato IS NULL
AND a_hoved.slettet_dato IS NULL;

Now I get id1,id2,id3 but the name only corresponding to id1. Can I get the name corresponding to id2 and id3 as well?