Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Use aliases:
create table Table1 (Code int, Field1 int, Field2 int);
create table Table2 (Code int, names varchar(255));
insert into Table1 values (1, 1, 2);
insert into Table1 values (2, 2, 1);
insert into Table2 values (1, "names1");
insert into Table2 values (2, "names2");
select t2a.names, t2b.names from Table1 t1, Table2 t2a, Table2 t2b
where t1.Field1 = t2a.Code and t1.Field2 = t2b.Code;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question