Using UDFs in Queries You can use UDFs in the select list of a main query or in the WHERE clause of a main query. Prerequisites Using NonStop SQL/MX UDFs in SQL Queries