table join
reason for join two table??
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Atul KumarPosted Jul 27, 2012, 6:55 AM
Santhosh Kumar JayaramanPosted Jul 27, 2012, 6:55 AM
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