Tell me the solution is such a smart problem: we have the result of the sample
As a result, a line appears where, in two columns of both FixHours and AddHours, there are values that are not equal to zero:
FixHours = 0.5 AddHours = 1.5 CalculatedValue = 16.5
As it can be divided into two, to get the line:
FixHours = 0.5 AddHours = 0 CalculatedValue = 16.5
FixHours = 0 AddHours = 1.5 CalculatedValue = 16.5
The idea was to find only this line, then artificially create the second one with the help of Union. But she failed because Such rows are in the table more than once. In general, any ideas?