I have seven columns in my table: hours, weight, status, total_hours, total_weight and percentage
total_weight = weight where status = 'X' total_hours = hours where status = 'X' percentage = total_hours/sum(weight)
sum(weight) is an aggregate function
I would like to specify formula to generate the three computed columns. What do i do?