how to write an aggregate function which can used like MAX(filedname) Recently, I will write a database application to get the median value
according to the grouped condition.
maybe, just like the following.
SELECT Max(a1) MaxValue, Median(a1) MedianValue FROM test_table
Any suggestion? |