I've got two fields called T1 and T2 defined as double. I'd like to set T3 with the following conditions:
If T1 & T2 >0 then T3=(T1+T2)/2
If T1==0 then T3=T2
if T2==0 then T3=T1
if T1==0 & T2==0, T3=-9999
I have no idea how to include multiple if statements in the query.