Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have 4 tables names

T1{umr, uid, mid}
T2{mr, mid, rid}
T3{rf, rid, fid}
T4{fid, fname}

given values are
uid
mid

and to receive is
fname
Posted

1 solution

It can be achieved using simple joins, like as follows:
select fname from T4 
inner join T3 on T4.fid = T3.fid 
inner join  T2 on T3.rid = T2.rid 
inner join T1 on T2.mid = T1.mid
 
Share this answer
 
v2
Comments
kami124 8-Sep-11 7:54am    
thanks
nagendrathecoder 8-Sep-11 8:00am    
Welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900