create cursor t1 (h1 n(1), h2 n(1), h3 n(1))
insert into t1 values (0, 1, 2)
insert into t1 values (1, 2, 3)
insert into t1 values (2, 3, 4)
create cursor t2 (h1 n(1), h2 n(1), h3 n(1))
insert into t2 values (2, 3, 4)
insert into t2 values (0, 1, 2)
insert into t2 values (2, 3, 1)
create cursor t3 (h1 n(1), h2 n(1), h3 n(1))
insert into t3 values (2, 3, 4)
insert into t3 values (3, 4, 5)
insert into t3 values (0, 1, 2)
select t1.h1, t1.h2, t1.h3 from t1, t2, t3 where ;
str(t1.h1) + str(t1.h2) + str(t1.h3) == str(t2.h1) + str(t2.h2) + str(t2.h3) and ;
str(t1.h1) + str(t1.h2) + str(t1.h3) == str(t3.h1) + str(t3.h2) + str(t3.h3) order by t1.h1, t1.h2, t1.h3