Hi friends i am having problem in joining two tables in oracle my two tables are shown bellow
table1 looks like
id Name Jan
7001 Deven 22
7002 Clause 55
7004 Monish 11
7010 Dipesh 55
7070 Dipika 100
table2 looks like
id Name Feb
7001 Deven 12
7002 Clause 15
7003 Nimesh 20
7004 Monish 21
7005 Ritesh 22
i want to combine this two table and want answer like bellow
table2 looks like
id Name Jan Feb
7001 Deven 22 12
7002 Clause 55 15
7003 Nimesh - 20
7004 Monish 11 21
7005 Ritesh - 22
7010 Dipesh 55 -
7070 Dipika 100 -
We join asymmetrical records sets using the OUTER JOIN syntax. A LEFT JOIN will provide the results you want:
edit
I note you have amended the sample data while I was knocking up the demo.
When both tables have values of ID which the other table lacks we can use a FULL JOIN to retrieve values from both sides: