Table join
reason for join two table??
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Atul KumarRank #1,527 · 1K reputationPosted Jul 27, 2012, 2:55 AM EDT
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Jul 27, 2012, 2:55 AM EDT
For eg table1 have EmpId, EmpName,
table2 have EmpId, Salary,Department.
Now you want to get all the four columns, then we ll use join
Select a.EmpId,EmpName,b.salary,b.Department from table1 a
inner join table2 b on b.EmpId=a.EmpId