This is below data in Table2
ID2 | Count2
-----------+-----------
1345653 5
534140349 5
682527813 4
687612723 3
704318001 5
This is my below data in Table1
ID1 | Count1
-----------+-----------
1345653 4
704318001 4
If you see the above table this 1345653 in Table2 has 5 count but in Table1 it has 4 count, In the same way this ID 704318001 in Table2 has 5 count but in Table1 it has 4 count. So I need to show like this in the Output.
ID Count2 Count1
-----------------------------------
1345653 5 4
534140349 5 0
682527813 4 0
687612723 3 0
704318001 5 4
Is this possible in sql? If Yes, how can I achieve that?
SQL 101