Can I write my own SQL functions?

Yes.  You can write both scalar and aggregate functions, include them in the database’s catalog, and then reference them from your SQL statements. See the Installation and Usage Notes for more information.

Posted in: SQL Support