create table t3 ( t1_id int, t2_id int, t3_name varchar(30), t3_price int foreignkey(t1_id) references t1(t1_id) foreignkey(t2_id) references t2(t2_id) ) now by using join, I've to get the name from t1 & t2 via matching ids in t3. I've done it for 2 tables but can not for 3 tables. I've tried this but it is not working.
select t1.t1_name,t3.t3_price,t2.t2_name from t3 inner join t1 on t1.t1_id = t3.t1_id inner join t2 on t2.t2_id = t3.t3_id where t3.t3_price = '30'