How do you create an Aggregate Function to get the total sum of a column for example?
I know this is built in as the SUM()
function but i need to make other more complex functions and this seems like a good place to start.
- Is the use of cursor's necessary?
- The parameter definition is the sames as for normal functions?
- And what variable scope should i use?
I'm not concerned with speed or efficiency only with the most simple way to do it. Thank you for your time.