Ok, this will be a little hard to explain. What I have is 6 columns id, layer_id, one, two, thr, fou in events, and 2 columns in layer id, name,. What I am trying to do is SUM one, two, thr, and fou, and then also COUNT one, two, thr, fou if they are not NULL. In the end it spits out something like the total of one and then divide by by the count of one. This query works, I just need to know if there is an eaiser way of doing this.