I have a 2 tables Existing_tools and Recommendation_tool having 4 columns (Account, Activity, Tools_name, count) but last column gives me number of existing tools and number of recommended tools count in respective tables.
I want output (Account, Activity, Tools_name, existing_tools_count, recommendation_tools_count), group by account and activity and all tools present in both the tables comes in output.
If tool name is not present in existing table then count will be 0 against existing_tools_count, same way if tool is not present in recommendation table count against recommendation_tools_count count will be 0.
And if tool is present in both the tables then given count will come accordingly.
Existing_TOOLS
Account Activity tools_Name Number of Existing_tool
x Agile/Proj. Mgmt JIRA 5
x Agile/Proj. Mgmt Collabnet 4
x Build ANT 3
x Build MAVEN 3
y Agile/Proj. Mgmt JIRA 5
y Agile/Proj. Mgmt Collabnet 4
y Build ANT 3
y Build MAVEN 3
Recommendation_tool
Account Activity tools_Name Number of recommendation_tool
x Agile/Proj. Mgmt JIRA 5
x Agile/Proj. Mgmt HP ALM 4
x Build MS build 3
y Agile/Proj. Mgmt JIRA 5
y Agile/Proj. Mgmt HP ALM 4
y Build MS build 3
Required_TABLE
Account Activity tools_Name Number of Existing_tool Number of recommendation_tool
x Agile/Proj. Mgmt JIRA 5 5
x Agile/Proj. Mgmt Collabnet 4 0
x Agile/Proj. Mgmt HP ALM 0 4
x Build ANT 3 0
x Build MAVEN 3 0
x Build MS build 0 3
y Agile/Proj. Mgmt JIRA 5 5
y Agile/Proj. Mgmt Collabnet 4 0
y Agile/Proj. Mgmt HP ALM 0 4
y Build ANT 3 0
y Build MAVEN 3 0
y Build MS build 0 3