I’m trying to get 2 counts from 2 tables and work out the percentage like for a MySQL db:
-
select field_one, count(*) as COUNT_ONE from table1 group by field_one; -
select other_field,count(*) as COUNT_TWO from table2 group by other_field;
I want to combine the results and have FINAL_COUNT=(COUNT_ONE/COUNT_TWO) * 100 for percentage ?
quick and dirty: