2
Answers

How to get data from 3 tables based on asset no

prasanna p

prasanna p

8y
223
1
Hi friends, I have 3 tables 1)Issueproducts -- fields Emoid,Assetno,issueddate 2) ProductReturn Assetno,Returndate,Empid 3)producttransfer Fromempid,toempid,Assetno,Transfer date. Now if I searchby Assetno I want to diplay by joining 3 tables such that when an employee returned after that to whom that asset is issued,transfered. I tried with inner join but if one table doesn't have records the result is empty. Please help me.
Answers (2)
2
Rafnas T P
NA 12.2k 435.7k 8y
select from ProductReturn  table and do all ather table left join and try
1
Nitin Sontakke
NA 11.7k 2.2k 8y
Try left outer join.
 
Meanwhile, please also post all output columns from all three tables. You know it really helps. Please try to put as much clarity as you possibly can in the question. Don't assume ANYTHING.