Hi guys,
I'm trying to order by a field that is nested arithimetic..
I get what seems like random ordering results, there is something wrong with the order by clause... possibly because some are null, but I think it has something to do with the math.. can someone check this out and let me know?!
Thanks!!
Tob
I'm trying to order by a field that is nested arithimetic..
Code:
SELECT Keyword, (sum(Converted) / sum(Clicked)), (sum(Clicked) / count(keyword)) FROM tobyn_stats WHERE date = '10/07/2007' and Source = 'GC' GROUP BY Keyword ORDER BY (sum(Converted) / sum(Clicked)) DESC
I get what seems like random ordering results, there is something wrong with the order by clause... possibly because some are null, but I think it has something to do with the math.. can someone check this out and let me know?!
Thanks!!
Tob