Probeer dit .. select t1.id,t1.values,t2.values from table1 t1 left outer join table t2 on nvl(t1.id,0)=nvl(t2.id,0)