I have two tables
Table1: MonthTable
column: MonthNumbers
1
2
3
4
5
6
Table2: Data
Id Name Charge Monthnumber
1 A 200 1
1 A 300 2
1 A 400 3
1 A 500 4
1 A 600 5
1 A 700 6
2 B 1000 1
2 B 2000 2
2 B 3000 3
Now I want Output for Data table like
Id Name Charge Monthnumber
1 A 200 1
1 A 300 2
1 A 400 3
1 A 500 4
1 A 600 5
1 A 700 6
2 B 1000 1
2 B 2000 2
2 B 3000 3
2 B 0 4
2 B 0 5
2 B 0 6
So All monthnumer record I should have for that specific Id.We can joi both tables using Monthnumber column
Table1: MonthTable
column: MonthNumbers
1
2
3
4
5
6
Table2: Data
Id Name Charge Monthnumber
1 A 200 1
1 A 300 2
1 A 400 3
1 A 500 4
1 A 600 5
1 A 700 6
2 B 1000 1
2 B 2000 2
2 B 3000 3
Now I want Output for Data table like
Id Name Charge Monthnumber
1 A 200 1
1 A 300 2
1 A 400 3
1 A 500 4
1 A 600 5
1 A 700 6
2 B 1000 1
2 B 2000 2
2 B 3000 3
2 B 0 4
2 B 0 5
2 B 0 6
So All monthnumer record I should have for that specific Id.We can joi both tables using Monthnumber column