On Friday 10 March 2006 14:24, Fay Du wrote:
> Table test
> Id | a | b
> -----+----+---
> 1 | 100| 101
> 2 | 101| 100
> 3 | 100| 3
> 4 | 20 | 30
> 5 | 11 | 13
> 6 | 3 | 33
> 7 | 30 | 20
>
select a.*
from test a, test b
where a.a = b.b and a.b = b.a
order by id
Regards, Milorad Poluga
--
---------------------------------------
Milorad Poluga
HK CORES Beograd, Makenzijeva 31
milorad(dot)poluga(at)cores(dot)co(dot)yu
---------------------------------------