How to get data from 3 tables based on asset no
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
select from ProductReturn table and do all ather table left join and try
1
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.