count(case when col1 = list.value and col3 > col4 then col2 end) as calc1,
count(case when col1 = list.value and col3 < col4 then col2 end) as calc2 from calculations, list group by list.value
theres two tables one with a list of values of in it, and another with four columns (integer values) that need to be calculated.
How would multiple calculations be made using the results of calc1 and calc2? ie..
calc1/calc2, and/or calc1-calc2
regards,
count(case when col1 = list.value and col3 < col4 then col2 end) as calc2 from calculations, list group by list.value
theres two tables one with a list of values of in it, and another with four columns (integer values) that need to be calculated.
How would multiple calculations be made using the results of calc1 and calc2? ie..
calc1/calc2, and/or calc1-calc2
regards,