In this talk I will briefly cover query processing in IBM's Relational Database product DB2 and particularly focus on a new language feature, SQL Bodied User Defined Functions- SQL UDFs, which I have helped implement. SQL UDFs are a part of a broader work going on at IBM Almaden Research Center that concentrates on adding Object Oriented features to DB2. The talk will mainly focus on QGM - The Query Graph Model- which is the key structure to the extensibility of DB2, as well as various language constructs - joins, function calls, triggers - which uses this structure. I will also cover how SQL UDFs utilize QGM and various alternatives of implementing them within the QGM.