Hi Guys i want to create a column based on the sum of another column Let's say i have this table
Employee id iddepartment idhostel valuedepartment 1 1 1 15 2 2 1 15 3 3 1 15 4 4 2 10 5 5 2 10 6 6 2 10
I want to create another table with a calculated column (sum valuedepartment group by idhostel) that looks something like this one
Employee id iddepartment idhostel valuedepartment valuehostel 1 1 1 15 45 2 2 1 15 45 3 3 1 15 45 4 4 2 10 30 5 5 2 10 30 6 6 2 10 30
There is a way i can do this please ?