Tell me how to create a function in the module for group operations. Here is the similarity of sum, only so that the lines are glued together. The problem is not in logic, but in the definition of a function. What should she take? I cannot find definitions for inline functions. Maybe someone knows about this?
1 answer
As far as I know, there is no regular interface for creating custom aggregate functions. You can use workarounds for this, such as transferring all the SQL to a function, but the speed will be much lower than that of the staff. Here, for example, a topic on this topic.
|