In this post you can find how to Create and Delete DB2 user-defined functions.
Three top SQL queries you need to get Table metadata. Metadata means Table structure. That means to know indexes and columns of a Table in question.
Given examples of Date condition in the WHERE clause are useful for DATE comparison.
How to insert array of values in DB2 Tables explained with sample SQL query.