I use redshift database.I am trying to write an aggregate query to find out the top ten inactive atms from 3 tables.When i try to find the percentage of inactive atms to the tot