1. Apparatus for integrating a non-SQL query written in a non-SQL language into a relational database management system of the type wherein an SQL query may contain an invocation of a table function and the table function, when executed, returns a set of rows to the containing query, the apparatus comprising: a table function invocation in the SQL query which includes a parameter that specifies the non-SQL query; and query execution code associated with the table function that, when executed, executes the non-SQL query on data that is accessible to the relational database management system and returns results of the execution of the non-SQL query in the returned set of rows.