Analytic, Grouping and Stored functions in Greenplum