What is the best way to perform an SQL aggregate function?
An aggregate function operates on sets of values and returns a single numeric result, such as the following: • AVG() – average • COUNT() – count • MIN() – minimum • MAX() – maximum • SUM() – sum Although it is possible to use the getData_raw() method, it is easier to use the getCount() method which works as follows: