HI
This is senthilraja working in TCS. I'm new to SQL. kindly help me in framing a SQL Statement for below scenario.
I have 2 tables and would like join both the tables.. Below u can find the statement which I have used for joining.
create table F5 (BT_TYPE int, appln int)
insert into F5 values(2,1)
create table LTB (Field int, lang int, Desc0 varchar(255))
insert into LTB values (1,1,'German')
insert into LTB values (1,2,'English')
insert into LTB values (1,3,'Itailian')
insert into LTB values (1,4,'Free lang')
insert into LTB values (2,1,'2German')
insert into LTB values (2,2,'2English')
insert into LTB values (2,3,'2Itailian')
insert into LTB values (2,4,'2Free lang')
select * from LTB
select * from F5
select a.*, b.Desc0 as bttyp_desc, c.Desc0 as appln_desc from F5 a, LTB b, LTB c where (b.lang=1 and b.Field=a.BT_TYPE) and (c.lang=1 and c.Field=a.appln)
The expected result should be as shown below(highlighted one)
Kindly help me in framing the SQL Statement where same table name should not be used twice.