Join Problem between tables
I have a 3 result sets from 3 temp tablesI want to join these 3 tables get the common column id in single column
For Eg:
StudID from table1
1
null
3
StudID name from table2
2 C
StudID name from table3
1 A
4 B
5 C
Select a.studid,name from table1 a,table2 b,table3 c where a.StudID = b.StudID
and b.StudID =c.StudID and c.StudID =a.StudID
I am getting the result set like
1
null
3
But I want the result like
1
2
3
4
5
in student id column
How to get this ressult set
Thanks in advance